Skip to content

Conversation

@bkeryan
Copy link
Collaborator

@bkeryan bkeryan commented Apr 30, 2025

What does this Pull Request accomplish?

Add AnalogWaveform.load_data, which allows overwriting or reassigning the waveform data array.

By default, this overwrites the waveform's data array (which might be backed by shared memory). If you specify copy=False, it takes ownership of the passed-in array (this is zero copy, but doesn't reuse shared memory).

You can specify an array subset using the start_index and sample_count parameters. I filed AB#3111366 - Consider removing start_index from AnalogWaveform API because I think we should revisit whether this is necessary once we have some run time with waveforms backed by shared memory.

Why should this Pull Request be merged?

Closes AB#3106621 - Add load data into existing waveform

What testing has been done?

Ran unit tests.

@bkeryan bkeryan requested a review from csjall as a code owner April 30, 2025 01:10
@bkeryan bkeryan requested review from csjall and jfriedri-ni and removed request for csjall April 30, 2025 01:10
@bkeryan bkeryan force-pushed the users/bkeryan/waveform-copy-pickle branch from 6c2fe3f to 28d425b Compare April 30, 2025 15:49
@bkeryan bkeryan force-pushed the users/bkeryan/waveform-load-data branch from 1c64eee to e541deb Compare April 30, 2025 15:51
@bkeryan bkeryan force-pushed the users/bkeryan/waveform-copy-pickle branch from 7b000c2 to 985ba65 Compare April 30, 2025 18:45
Base automatically changed from users/bkeryan/waveform-copy-pickle to main April 30, 2025 18:49
@bkeryan bkeryan force-pushed the users/bkeryan/waveform-load-data branch from e541deb to 20179f6 Compare April 30, 2025 18:52
@github-actions
Copy link
Contributor

Test Results

   10 files  ±  0     10 suites  ±0   25s ⏱️ -1s
  511 tests + 14    511 ✅ + 14  0 💤 ±0  0 ❌ ±0 
5 110 runs  +140  5 110 ✅ +140  0 💤 ±0  0 ❌ ±0 

Results for commit 20179f6. ± Comparison against base commit 67df337.

@bkeryan bkeryan merged commit 758924a into main Apr 30, 2025
14 checks passed
@bkeryan bkeryan deleted the users/bkeryan/waveform-load-data branch April 30, 2025 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants