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

Prepare for upcoming changes in photutils #8058

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion jwst/source_catalog/source_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,14 @@
self._ypeak = segm_cat.maxval_yindex

self.meta.update(segm_cat.meta)
versions_meta = self.meta.get('versions', self.meta.get('version'))
if versions_meta is None:
raise KeyError(

Check warning on line 241 in jwst/source_catalog/source_catalog.py

View check run for this annotation

Codecov / codecov/patch

jwst/source_catalog/source_catalog.py#L241

Added line #L241 was not covered by tests
"SourceCatalog is missing both 'version' and 'versions' "
"keywords in the meta attribute."
)
for key in ('sklearn', 'matplotlib'):
self.meta['version'].pop(key)
versions_meta.pop(key)

# rename some columns in the output catalog
prop_names = {}
Expand Down
Loading