Skip to content

Initial ASDF extension and tests#2211

Open
nden wants to merge 11 commits intoastropy:mainfrom
nden:asdf-init
Open

Initial ASDF extension and tests#2211
nden wants to merge 11 commits intoastropy:mainfrom
nden:asdf-init

Conversation

@nden
Copy link
Contributor

@nden nden commented Mar 4, 2026

This PR is a contribution to astropy/astropy-project#527 . It implements the initial setup for serializing photutils PSF and aperture objects to ASDF. The proposal mentioned the implementation will be in asdf-astropy. However, after discussion with the ASDF developers we decided to include the implementation in photutils in order to keep the library code in sync with the serialization more easily. This PR adds

  • ASDF extension
  • Schemas for one PSF model and one aperture
  • Converters for the obkects
  • Sets up testing of schemas and adds tests for the converters

I am not able to request reviewers so tagging here @larrybradley @perrygreenfield @braingram

@larrybradley
Copy link
Member

pre-commit.ci autofix

@nden
Copy link
Contributor Author

nden commented Mar 5, 2026

pre-commit.ci autofix

@nden
Copy link
Contributor Author

nden commented Mar 5, 2026

pre-commit.ci autofix

@nden
Copy link
Contributor Author

nden commented Mar 6, 2026

Bumping the min version of astropy to v 7.2 fixed the oldestdeps test. Is this an acceptable change?

@larrybradley
Copy link
Member

@nden Is astropy 7.2 (released Nov 2025) the only version that works? Requiring only the latest release of astropy does seem to be a bit restrictive. That would also put constraints on all photutils dependencies, like jwst, romancal, drizzlepac/hap, etc.

@nden
Copy link
Contributor Author

nden commented Mar 7, 2026

The failing tests were using astropy 6.1.4. It appears there was a follow up bug fix release, 6.1.7, which works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants