receive_calibration

receive_calibration#

pulserver.ir.receive_calibration()[source]#

Return the subsequence a prescan of the cache beside a sequence file calibrates the receive gain on.

The calibration the host generated (receive_calibration_sequence()), which only a prescan plays, where the cache holds one that reads out; otherwise, where exactly one subsequence reads out, that subsequence from its start, after a generated subsequence that does not read out, the pTx tour, where the cache holds one.

Parameters:
  • seq_path (Path | str) – The first file of the chain; the cache is the file beside it.

  • cache_ext (str, default='.pseg') – Extension of the cache, dot included.

Returns:

generated (True for the generated, prescan-only subsequence), lead (the prescan-only subsequence played before it, -1 for none), subsequence (-1 where neither holds) and readouts, those it calibrates on.

Return type:

dict of str to Any