-
Notifications
You must be signed in to change notification settings - Fork 276
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
[bugfix] Keep units when setting domain edges for frb datasets. #1659
Conversation
@yt-fido test this please |
self.domain_left_edge = \ | ||
np.concatenate([self.parameters["left_edge"], [0.]]) | ||
self.domain_right_edge = \ | ||
np.concatenate([self.parameters["right_edge"], [1.]]) |
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.
We do also have a uconcatenate
function that could be used for this.
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.
Yeah, I know. I just found it a bit clunky to ensure everything was in the same units. My solution doesn't actually work, though, so I'll do it like that.
@yt-fido test this please |
@brittonsmith unfortunately nebula is down at the moment, along with jenkins. |
@yt-fido test this please |
The remaining test failures on jenkins are unrelated and will be fixed by #1666. |
@yt-fido test this please |
This fixes a bug that shows up when you do:
The units of the domain right/left edges were being clobbered. The added assert tests this functionality.