Skip to content

Conversation

@charmasaur
Copy link
Contributor

@charmasaur charmasaur commented Jul 29, 2021

Alternative to #200. Even though this one is a bit less consistent with BOULDER OPAL, I think it's better. For a start, it means the user can also benefit from resampling for the export-to-file function too, which I would have thought should be very useful. Also, I don't think consistency with BOULDER OPAL is that important here, because DrivenControl is a very different beast to a plain old pulse.

@charmasaur charmasaur marked this pull request as ready for review July 30, 2021 06:36
@charmasaur charmasaur requested review from a team and tachikoma-li July 30, 2021 06:36
{"time_step": time_step},
)
check_arguments(
time_step <= self.duration,
Copy link
Member

Choose a reason for hiding this comment

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

What if the time_step is larger than the minimum segment duration time, but smaller than duration? I guess we don't expect it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I was thinking that's just a case we need to accept. Even for a sensible time_step, you can still get a wonky sampling if it doesn't exactly divide a segment duration, which I think is unavoidable.

Copy link
Member

@tachikoma-li tachikoma-li left a comment

Choose a reason for hiding this comment

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

🚀

@charmasaur charmasaur merged commit 5cd16f0 into master Jul 30, 2021
@charmasaur charmasaur deleted the resample branch July 30, 2021 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants