ReconPlugin.receive

ReconPlugin.receive#

final ReconPlugin.receive()[source]#

Take in one acquisition and reconstruct the units it completes.

In order: the acquisition must pass require_flags and reject_flags; the gadgets run over a copy of it, any of which may consume it, hold it, or give on readouts it held before it; branch_for() names the branch of each readout given on; each is added to its unit, which places it; the units that close are removed from the plugin and reconstructed by recon(), in the order they opened. Readouts a gadget still holds are placed by flush(). An acquisition carrying LAST_IN_MEASUREMENT closes every open unit instead, as flush() does, whether or not it has samples: the stream’s end marker has none.

Returns:

(data, output) for each unit recon() returned something for, data being what it was given.

Return type:

list