add stream_acquire generator for incremental readout data streaming in addition to acquire#403
Open
gauravag99 wants to merge 3 commits intoopenquantumhardware:mainfrom
Open
add stream_acquire generator for incremental readout data streaming in addition to acquire#403gauravag99 wants to merge 3 commits intoopenquantumhardware:mainfrom
gauravag99 wants to merge 3 commits intoopenquantumhardware:mainfrom
Conversation
Contributor
|
Nice, thanks! At first glance this looks good. I'll review and merge next week. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds another method stream_acquire() following already existing acquire() and instead of keeping received data in memory, yields it. The main use case is being able to push data directly to persistent storage rather than keeping in memory but also allows live plotting.
Changes: Add stream_acquire() generator method to AcquireMixin class.
The method yields dicts with incremental 'data' events as acquisition progresses (new_points, partial buffers).
The
rep_slicerefers to point number in total points to be collected and is calculated from the loops defined in the AveragerProgramV2.The way to use it is:
one can re-construct easily the rep numbers and loop numbers and put together the data using methods like
prog.loop_dict,prog.get_pulse_parametc to get loop_values.