-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patched TSR wrapping to use Bw_cont and added TSR unit test. #194
Conversation
Bw_interval = numpy.minimum(Bw_interval, 2*pi) | ||
|
||
Bw_cont[3:6, 0] = wrap_to_interval(Bw_cont[3:6, 0]) | ||
Bw_cont[3:6, 1] = Bw_cont[3:6, 0] + Bw_interval |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can produce values in the range [ -pi, 3*pi ]
. Is that intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does this happen?
This pull request most likely does not fix the I'll create another issue to track the |
👍 I think we need to carefully figure out a way to keep |
I logged the |
Patched TSR wrapping to use Bw_cont and added TSR unit test.
This PR addresses #190 by changing the wrapping function to be bounds-aware. This allows wrapping into the
Bw
interval for checks, and wrapping into the[-pi, pi)
interval for samples, and also fixes various bugs with zero-measure intervals wrapping incorrectly.The PR also adds a unit test for TSRs, although it is very simple right now.