-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat(ShiftRA): add option to make shift 360-degree-periodic #226
Conversation
b3ffd86
to
49ffbec
Compare
@ljgray The black check is failing here, and I recently saw your (now closed) PR that noted the changes in the latest version of black. Is there a plan to apply the new version to the radiocosmology codes, or pin the black version in the CI, or something else? |
Ah, yeah I should have mentioned that somewhere. I think we settled on just having whoever opens a PR that fails due to black just update and run the newest version of black and include that as a commit in the PR (I think it's black 23.1 ). So I guess just run the newest version of black over everything here and include those changes in anther commit, and it'll get included when this is merged. I've already done this on ch_pipeline and ch_util |
@ljgray Sounds good, thanks for clarifying! |
c153667
to
3a7d12b
Compare
FYI, I merged in another PR that updated the black formatting, so there might be a merge conflict to deal with |
5fcf2cb
to
4ace641
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.
Overall I think the implementation is good. I wonder if we should separate the behaviour of wrapping the ra
axis and actually applying the shift to the datasets into two separate flags, like periodic
and apply_to_data
. As far as I understand, the original reason for this task was to properly align the ra
axis stamps with the underlying data, so modifying the underlying data has a slightly different effect than what was previously being done.
I'm not sure I understand the case you're describing, where you would want to shift and wrap the |
Ah, yes I see what you mean |
4ace641
to
c53cd54
Compare
Adds an option to
ShiftRA
to periodically wrap shifted RA coordinates, and the RA axis of any relevant dataset