Conversation
…ut of precomputed templates
1b488df to
6d45c36
Compare
There was a problem hiding this comment.
Pull request overview
This PR adds time-stepped ground filtering and expands infrastructure for in-memory HEALPix map co-addition / comparison, while also standardizing operator timing logs across multiple TOAST ops.
Changes:
- Extend
FilterBinwith time-stepped ground templates, template covariance handling controls, and facilities for saving template examples / amplitudes. - Refactor
toast_healpix_coadd.pyto support cached (in-memory) inputs, optional RING output, and more flexible weighting. - Add a new
toast_healpix_compare.pyscript and broaden operator-level “Applying/Applied” timing logs.
Reviewed changes
Copilot reviewed 21 out of 21 changed files in this pull request and generated 39 comments.
Show a summary per file
| File | Description |
|---|---|
| src/toast/tests/ops_filterbin.py | Updates FilterBin test configuration to exercise new options. |
| src/toast/scripts/toast_healpix_compare.py | New CLI script to compare two HEALPix maps. |
| src/toast/scripts/toast_healpix_coadd.py | Refactor coadd workflow (cache/result support, ring output option, input parsing changes). |
| src/toast/scripts/CMakeLists.txt | Installs the new toast_healpix_compare.py entrypoint. |
| src/toast/pixels_io_healpix.py | Simplifies HDF5 read argument handling and removes verbose printouts. |
| src/toast/ops/time_constant.py | Adds consistent operator start/end timing logs. |
| src/toast/ops/simple_statcut.py | Adds consistent operator start/end timing logs and adjusts logging output. |
| src/toast/ops/simple_jumpcorrect.py | Adds consistent operator start/end timing logs. |
| src/toast/ops/simple_deglitch.py | Adds consistent operator start/end timing logs and adjusts logging output. |
| src/toast/ops/signal_diff_noise_model.py | Adds consistent operator timing logs. |
| src/toast/ops/scan_healpix.py | Adds consistent operator timing logs. |
| src/toast/ops/polyfilter/polyfilter.py | Adds consistent operator timing logs. |
| src/toast/ops/noise_model.py | Adds consistent operator timing logs in FlagNoiseFit. |
| src/toast/ops/mapmaker.py | Changes initialization of START/STOP header aggregation values. |
| src/toast/ops/hwpfilter.py | Adds reverse mode and consistent operator timing logs; refactors template subtraction path. |
| src/toast/ops/filterbin.py | Implements time-stepped ground templates, template metadata capture, rcond-based handling, template saving, and output naming changes. |
| src/toast/ops/demodulation.py | Fixes help text typo and adds consistent operator timing logs. |
| src/toast/ops/decimate_focalplane.py | New operator to decimate (flag) detectors on the focalplane. |
| src/toast/ops/calibrate.py | Adds consistent operator timing logs. |
| src/toast/ops/init.py | Exports the new DecimateFocalplane operator. |
| src/toast/ops/CMakeLists.txt | Installs the new decimate_focalplane.py module. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@keskitalo I've opened a new pull request, #917, to work on those changes. Once the pull request is ready, I'll request review from you. |
|
@keskitalo I've opened a new pull request, #918, to work on those changes. Once the pull request is ready, I'll request review from you. |
Co-authored-by: Copilot <[email protected]>
* Initial plan * Fix undefined variables in error messages (nside1->nside, nmap1->nmap) Co-authored-by: keskitalo <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: keskitalo <[email protected]>
|
@keskitalo I've opened a new pull request, #921, to work on those changes. Once the pull request is ready, I'll request review from you. |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
|
@keskitalo I've opened a new pull request, #922, to work on those changes. Once the pull request is ready, I'll request review from you. |
…920) * Initial plan * Fix weights type error: assign tuples instead of scalars Co-authored-by: keskitalo <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: keskitalo <[email protected]>
* Initial plan * Fix division by zero in template orthogonalization Co-authored-by: keskitalo <[email protected]> * Use tolerance for near-zero norm check in orthogonalization Co-authored-by: keskitalo <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: keskitalo <[email protected]>
* Initial plan * Add comprehensive unit tests for DecimateFocalplane operator Co-authored-by: keskitalo <[email protected]> * Improve decimation pattern test with proper assertions Co-authored-by: keskitalo <[email protected]> * Add assertions for unflagged detectors in pixel grouping test Co-authored-by: keskitalo <[email protected]> * Remove redundant MPI reduction and pixel grouping tests Co-authored-by: keskitalo <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: keskitalo <[email protected]>
|
There are intermittent unit test failures but they seem unrelated to the PR. |
|
All three test failures happen in the same place in the |
|
I'll just note that this test fails with the same error on my local system: The same command running on an install of the |
Time-stepped ground filter and all the facilities to perform map co-add in memory.