-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement time-dependent quaternions and save memory when computing p…
…ointings (#319) * Fix wrong terminology in the manual * Fix wrong docstring for _compute_pixel_indices * Add a few more comments and improve docstrings * Fix the formatting of a docstring * Improve the docstring for Simulation.set_scanning_strategy * Improve the clarity of a few tests * Improve the pointing generation benchmark * Ignore ASDF files * Add missing @njit * Remove a comment that's no longer relevant * Rename Spin2EclipticQuaternions into TimeDependentQuaternion * Rename get_detector_quats() into slerp() and add __mul__() * TimeDependentQuaternion → RotQuaternion, implement pointing calculation * Update benchmarks/*.py to the new API for get_pointings * Add `HWP.apply_hwp_to_pointings` * Implement the class `PointingProvider` * Update the benckmark * Implement PointingProvider.has_hwp() * Export PointingProvider * Remove deprecated function `read_observations` * Remove declaration for deprecated function `read_observations` * Add I/O capabilities to the HWP class * Remove "dtype_pointing" keyword from Simulation.compute_pointings * Load/save quaternions and HWP information in HDF5 files * Update the documentation about HDF5 files * Remove get_pointing_buffer_shape, get_pointings, get_pointings_for_observations * Test the ability to save the pointings * Make test_coordinates() work with the new API * Rename Simulation.compute_pointings() to Simulation.prepare_pointings() * Support multiple detectors in Observation.get_pointings() * Fix the order of imports * Create a low-level prepare_pointings function * Support multiple detectors and lbs.prepare_pointings() in Simulation class * Update the signature of `rotate_coordinates_e2g` * Remove unused private functions * Update the parameter names used with rotate_coordinates_e2g * Update formatting * Add 'pointings_dtype=' parameter to prepare_pointings() and get_pointings() * Extract `precompute_pointings()` from prepare_pointings() * Remove wrong reference to Observation.pointing_coords * Remove wrong reference to Observation.pointing_coords * Update the documentation * Improve docstrings for HWP * updated to new pointings hwp_sys.py and test_hwp_sys.py * reformatted hwp_sys.py * update example notebook hwp_sys, still missing the pointing update regarding lbs.make_binned_map() * minor adjustment to _compute_pixel_indices() * hwp_sys example notebook update (make_binned_map still missing computation of pointing on the fly) * choosing dtype for pointings computation in hwp_sys * reformatting * dipole.py updated * test fixed * binner fixed * fix test_scan_map.py * test_binner fixed * test_scanning fixed * fixed hwp_sys.py * test_coordinates fixed * madam interface fixed * updated test_hwp_sys.py * updated hwp_sys.py with coord in gal choice * update hwp_sys/examples/simple_scan.ipynb with pointings onthefly for make_binned_map * simulation.prepare_pointings cleaned * standardize variable names * fix syntax * Update `destriper` to new scheme * New naming convention (obs -> observations) * Fix tests destriper * Propagate new naming * Docs * Correct typing * Correct docs * Avoid printing polangle in docs * Print all (θ, φ, ψ) in docs * update hwp_sys.py * update hwp_angle in hwp_sys.py and relative test * some documentation added * get_pointings has "all" as default * add quaternion function in `quaternions.py` * add `pointing_sys.py` * fix a document error in `quaternions.py` * add `__init__.py` in `pointing_sys` * add functions of `pointing_sys` * add `test_quat_rotations` in `test` * add `test_pointing_sys.py` in `test` * fix to change github action macos image from arm64 to x86_64 architecture to allow installation of toast2 on macos * add some documents in `pointing_sys.py` * simplify: `get_detector_orientation()` * debug: `_ecl2focalplane()` * Changed all tests to compare with reference file. * add script `gen_mock_ficalplane.py` which creates a toml file includes `DetectorInfo`. * add `mock_focalplane.toml` which is used by `test_pointing_sys.py` * add reference file `pointing_sys_reference.json.gz` for test * refactoring `pointing_sys.py` * add a notebook `Tutorial_PointingSys.ipynb` * add comments to `Tutorial_PointingSys.ipynb` * update changelog and status * fix Tutorial_PointingSys.ipynb * Adapt data splits notebook to new API * Change `dtype_tod` into `tod_dtype` for consistency * update notebook * put `atol` for every tests * Test revert macos change * revert * fix pointing_matrix returned by get_pointings * test fixed * fix syntax * again syntax fix * changed the github action image for macos to macos-13; fixed syntax issues * updated poetry.lock to sync markdown-katex version * Fix poetry.lock * [skip ci] Update CHANGELOG --------- Co-authored-by: Nicolò Raffuzzi <[email protected]> Co-authored-by: sgiardie <[email protected]> Co-authored-by: Luca Pagano <[email protected]> Co-authored-by: Giacomo Galloni <[email protected]> Co-authored-by: yusuke-takase <[email protected]> Co-authored-by: Avinash Anand <[email protected]>
- Loading branch information
1 parent
058a12d
commit d6c6386
Showing
68 changed files
with
8,222 additions
and
4,050 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pointings.npy | ||
results/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.