Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-22814: Remove afw APIs deprecated in DM-17566 #121

Merged
merged 1 commit into from
Nov 4, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/lsst/daf/persistence/posixStorage.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ def readFitsStorage(butlerLocation):
if not supportsOptions:
from lsst.daf.base import PropertySet, PropertyList
if issubclass(pythonType, (PropertySet, PropertyList)):
from lsst.afw.image import readMetadata
from lsst.afw.fits import readMetadata
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of scope, but maybe get rid of the local import while you're at it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I'll leave it, given daf_persistence near-obsolescence (tm).

reader = readMetadata
else:
reader = pythonType.readFits
Expand Down