-
Notifications
You must be signed in to change notification settings - Fork 37
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
Consistent use of Units in detector data, pixel data, and noise models #593
Conversation
846239c
to
11dc02e
Compare
7233eb1
to
ada94af
Compare
Ok, this will need rebased after #592 is merged, since there will be conflicts, but this work now includes:
Also, this does not solve the slow convergence of the gain template in the case of a "perfect" time domain model. We can work on that in the next PR. |
* Enforce consistent units throughout the detector, pixel, and noise classes. * Use units when doing map-domain I/O. * Introduce a new Unit trait type for operators and templates, and support this trait type throughout the configuration system. * Maintain units in the noise model classes, including for detector inverse variance weights. * Check units when assigning to DetectorData objects. * Propagate units when duplicating and redistributing Observations. * Do not copy internal interval containing all samples when redistributing observations. * Scale detector data when doing arithmetic with the Combine operator * Replace old collective debug logging with `Logger.debug_rank()` * Run format_source.sh
ada94af
to
afa4f10
Compare
…age to catch those.
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 PR makes TOAST significantly more robust against confusion over physical units.
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.
thanks a lot to put together this PR. It is a huge effort and would address several open issues e.g. #585
I am happy with the changes! and I approve'em all.
* Fix support for container parsing from CLI. * Expand unit test coverage. * Change PixelsWCS bounds to a flat container, not nested.
…creating or remapping data.
Work in progress on supporting consistent units between detector data, pixel data, etc.