Skip to content

Update zcuts tests to use z-min-pairs/z-max-pairs#1128

Merged
andreicuceu merged 2 commits intoz-bin-refactoringfrom
copilot/sub-pr-1125
Mar 23, 2026
Merged

Update zcuts tests to use z-min-pairs/z-max-pairs#1128
andreicuceu merged 2 commits intoz-bin-refactoringfrom
copilot/sub-pr-1125

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 23, 2026

The z-bin refactoring replaced --z-cut-min/--z-cut-max with --z-min-pairs/--z-max-pairs, leaving 7 test functions commented out and their reference files stale. Additionally, picca_export.py was updated to read ZMIN/ZMAX headers but non-zcuts reference files still had ZCUTMIN/ZCUTMAX, breaking 3 export tests.

Test function updates (test_3_cor.py)

  • Uncommented all 7 zcuts test functions and replaced --z-cut-min/--z-cut-max with --z-min-pairs/--z-max-pairs
  • Added z_min_pairs/z_max_pairs to reset_cf() and reset_xcf() teardown helpers

Reference file updates (test_cor/)

  • Regenerated 7 zcuts reference files with new parameters: cf_zcuts, cf_image_zcuts, dmat_zcuts, cf_cross_zcuts, dmat_cross_zcuts, xcf_zcuts, xdmat_zcuts
  • Deleted 10 stale files for removed tests: cf_angl_zcuts, metal_dmat_zcuts, fast_metal_dmat_zcuts, wick_zcuts, metal_dmat_cross_zcuts, fast_metal_dmat_cross_zcuts, xcf_angl_zcuts, metal_xdmat_zcuts, xwick_zcuts, cf_zcuts_image
  • Regenerated cf.fits.gz, xcf.fits.gz, cf_cross.fits.gz to carry ZMIN/ZMAX headers (instead of ZCUTMIN/ZCUTMAX), fixing the 3 broken export tests

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

…files, remove stale files

Co-authored-by: andreicuceu <28951059+andreicuceu@users.noreply.github.com>
Agent-Logs-Url: https://github.com/igmhub/picca/sessions/4a972c8d-6f80-4b0e-9e28-447f9190ff96
Copilot AI changed the title [WIP] Update tests in test_3_corr.py for z-bin changes Update zcuts tests to use z-min-pairs/z-max-pairs Mar 23, 2026
Copilot AI requested a review from andreicuceu March 23, 2026 22:40
@andreicuceu andreicuceu merged commit af3a7e9 into z-bin-refactoring Mar 23, 2026
12 checks passed
@andreicuceu andreicuceu deleted the copilot/sub-pr-1125 branch March 23, 2026 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants