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-10302 Change flux->instFlux #213

Merged
merged 2 commits into from Sep 19, 2018
Merged

DM-10302 Change flux->instFlux #213

merged 2 commits into from Sep 19, 2018

Conversation

parejkoj
Copy link
Contributor

No description provided.

Copy link
Contributor

@r-owen r-owen left a comment

Choose a reason for hiding this comment

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

Looks good. I had one suggestion that might make the code more robust (if it works at all)

@@ -102,7 +102,7 @@ def run():
print("Adding columns to the source catalogue")
cat = afwTable.SourceCatalog(schema)
cat.table.defineCentroid(srcCat.table.getCentroidDefinition())
cat.table.definePsfFlux(srcCat.table.getPsfFluxDefinition())
cat.table.definePsfFlux(srcCat.table.schema.getAliasMap().get("slot_psfFlux"))
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you sure this will be in the alias map? Did you try using schema.get("slot_psfFlux")?

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'd been working off the recommendation from the original deprecation warning, but yours is better, I think.

@parejkoj parejkoj force-pushed the tickets/DM-10302 branch 2 times, most recently from 5d00bf5 to 7c3930e Compare September 17, 2018 21:41
@parejkoj parejkoj force-pushed the tickets/DM-10302 branch 2 times, most recently from 3126c65 to b88532b Compare September 19, 2018 00:57
@parejkoj parejkoj merged commit ebdc737 into master Sep 19, 2018
@timj timj deleted the tickets/DM-10302 branch February 18, 2021 15:50
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.

None yet

2 participants