-
Notifications
You must be signed in to change notification settings - Fork 11
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
ephemeris plugin: custom phase-wrapping #44
Conversation
4467ff3
to
5e3ebb7
Compare
Codecov ReportPatch coverage is
📢 Thoughts on this report? Let us know!. |
7d77d54
to
1be9fbb
Compare
f220d65
to
df1de4c
Compare
lcviz/plugins/ephemeris/ephemeris.py
Outdated
if event.get('name') == 'wrap_at': | ||
pvs = self.phase_viewer.state | ||
delta_phase = event.get('new') - event.get('old') | ||
pvs.x_min, pvs.x_max = pvs.x_min + delta_phase, pvs.x_max + delta_phase |
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.
@bmorris3 - I can't reproduce the flipped axis you're seeing. Can you either debug to see what is happening in these lines or send a recording if any intermediate steps are necessary to reproduce?
* whenever the ephemeris (including wrap_at) or the viewer limits are changed, the limits are checked against the full range of data and displays a message and button to reset the x-limits if not all data are shown in the phase-viewer
b9493e2
to
2d4a74e
Compare
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 works nicely, with one caveat to fix before merge.
2509f94
to
0bb47ae
Compare
This PR implements a "phase_wrap" option in the ephemeris plugin along with automatic phase-limits updates
a convenient in-plugin identification when the phase-wrapped data falls outside the viewer x-limits.original in-plugin limits warning
**NOTE**: hint text for the wrapping UI element has been updated slightly since this recording to say "Phased data will encompass the range (1-wrap_at, wrap_at)"Screen.Recording.2023-09-01.at.2.17.29.PM.mov
auto-updating phase-limits
Screen.Recording.2023-09-06.at.9.46.23.AM.mov