Skip to content

Update to main.#75

Merged
KerryPaterson merged 85 commits into
KerryPaterson-patch-1from
main
Mar 10, 2026
Merged

Update to main.#75
KerryPaterson merged 85 commits into
KerryPaterson-patch-1from
main

Conversation

@KerryPaterson

Copy link
Copy Markdown
Collaborator

No description provided.

Changes for POTPyRI v1.1 to make code more modular and closer to Keck DRP
Merging recent updates to dev branch
Updating Gaia WCS solutions and sky subtraction
Change conda environment from 'potpyri_test' to 'potpyri'
Documentation, API reference, and pipeline improvements — merge dev into main
- Introduced test_create_error to validate the output of the create_error function.
- Enhanced test coverage for image processing functionalities.
- Updated README and CONTRIBUTING.md for clarity on testing procedures and documentation deployment.
- Added unit tests for create_error function to ensure expected behavior.
- Enhanced test_image_procs.py for better coverage of image processing features.
- Revised README and CONTRIBUTING.md to clarify testing guidelines and documentation processes.
- Added additional unit tests for create_error function to improve coverage.
- Further refined test_image_procs.py for comprehensive testing of image processing.
- Updated README and CONTRIBUTING.md to provide clearer instructions on testing and documentation practices.
…tions

- Updated find_catalog to correctly handle K, Ks, and Kspec filters for 2MASS, mapping them to the K-band columns.
- Enhanced convert_filter_name to return 'K' for K, Ks, and Kspec filters.
- Added unit tests to validate the new behavior for 2MASS K-band filters in test_utilities and test_absphot.
…ame loading

- Added a new helper function to read calibration FITS files into CCDData without parsing WCS, addressing issues with ill-conditioned WCS keywords.
- Refactored bias, dark, flat, and sky frame loading methods to utilize the new function, improving code clarity and reducing redundancy.
- Introduced a new function, _sanitize_calibration_header, to remove WCS and coordinate keywords from calibration headers, ensuring safe writing of calibration files.
- Updated bias, dark, flat, and sky frame writing methods to utilize the new sanitization function, preventing potential InvalidTransformError during WCS parsing.
- Improved logging to ensure messages are only displayed when logging is enabled.
- Introduced tests for _sanitize_calibration_header and _read_calibration_ccd functions to ensure proper handling of calibration FITS files and header sanitization.
- Added tests for loading bias, dark, flat, and sky frames, verifying that they correctly utilize the new calibration loading methods.
- Implemented additional tests for sky subtraction and static mask filename retrieval to enhance overall test coverage.
- Updated the _read_calibration_ccd function to improve efficiency in loading calibration FITS files.
- Refactored related loading methods for bias, dark, flat, and sky frames to streamline the process.
- Added new unit tests to ensure robust validation of calibration frame loading and processing.
Docs, tests, and CI: API reference, unit test coverage, and documentation updates
…sking

- Updated the create_sky method to include configurable parameters for iterative sigma clipping, allowing for better estimation of sky background and masking of bright sources.
- Improved handling of NaN values during normalization and masking processes.
- Added unit tests to validate the new functionality, ensuring robust performance with both default and custom parameters.
Enhance create_sky method with iterative sigma clipping and robust ma…
…talogs

- Enhanced the image processing pipeline to include a new option for relative calibration, allowing frames to be calibrated to each other based on source fluxes from SExtractor catalogs.
- Introduced the compute_relative_scales function to compute scale factors for stacking images, improving the accuracy of combined outputs.
- Updated the main_pipeline and image_proc functions to support the new relative calibration feature.
- Added unit tests to validate the new functionality and ensure robust performance across various scenarios.
Implement relative calibration for image stacking using SExtractor catalogs
@KerryPaterson
KerryPaterson merged commit 40bcee9 into KerryPaterson-patch-1 Mar 10, 2026
4 checks passed
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