Skip to content

waveform decoding sets sampling size to zero if below 1 - #79

Merged
jwaiton merged 6 commits into
nu-ZOO:mainfrom
Tedsmith100:74-waveform-decoding-sets-sampling-size-to-zero-if-below-1
Jun 23, 2026
Merged

waveform decoding sets sampling size to zero if below 1#79
jwaiton merged 6 commits into
nu-ZOO:mainfrom
Tedsmith100:74-waveform-decoding-sets-sampling-size-to-zero-if-below-1

Conversation

@Tedsmith100

Copy link
Copy Markdown
Contributor

Changes sample size types from int to float to accommodate non integer sampling. For example when the oscilloscope is used, the sample size is not fixed at 2ns and could be floats.

@Tedsmith100
Tedsmith100 requested a review from a team April 28, 2026 10:44
@jwaiton

jwaiton commented Apr 28, 2026

Copy link
Copy Markdown
Member

The tests no longer pass, it will be worth understanding why this is before this PR can be accepted.

Also, we don't include merge commits in MULE, we'll resolve that with a rebase :)

@jwaiton

jwaiton commented May 1, 2026

Copy link
Copy Markdown
Member

Tests pass, and the data looks untransformed (other than sampling size now being a float). Next time you're in the office, we'll rebase your code to remove the merge commits and then I'll approve it.

@Tedsmith100
Tedsmith100 force-pushed the 74-waveform-decoding-sets-sampling-size-to-zero-if-below-1 branch from bb2af84 to 6209d87 Compare May 11, 2026 15:41
Change `sample_size` to allow for floats.
'sampling_period' from int to float
change `sampling_period` to float
float `sampling_period`
rathern than asserting equals for float values
@Tedsmith100
Tedsmith100 force-pushed the 74-waveform-decoding-sets-sampling-size-to-zero-if-below-1 branch from e804467 to d614051 Compare June 22, 2026 13:07

@jwaiton jwaiton left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR alters the sampling size to a float. This was mostly done to avoid implicit flooring of values below 1, but also now allows for more complex sampling sizes to be collected.

Good work!

@jwaiton jwaiton changed the title 74 waveform decoding sets sampling size to zero if below 1 waveform decoding sets sampling size to zero if below 1 Jun 23, 2026
@jwaiton
jwaiton merged commit 80729a9 into nu-ZOO:main Jun 23, 2026
3 checks passed
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.

2 participants