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-27168: Phase out use of FilterProperty #428

Merged
merged 1 commit into from Nov 12, 2020
Merged

DM-27168: Phase out use of FilterProperty #428

merged 1 commit into from Nov 12, 2020

Conversation

czwa
Copy link
Contributor

@czwa czwa commented Nov 10, 2020

End usage of FilterProperty, as per RFC-730.

Usage in dcrAssembleCoadd.py left as it is dealt with by DM-26615.

@czwa czwa requested a review from kfindeisen November 10, 2020 21:15
Copy link
Member

@kfindeisen kfindeisen left a comment

Choose a reason for hiding this comment

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

I'm a bit confused by your comment about dcrAssembleCoadd.py. DM-26615 has already been merged and is ancestral to this branch; are you still seeing residual use despite that?

@@ -144,7 +144,7 @@ def getShortFilterName(name):
# I'm not sure if this is the way this is supposed to be implemented, but it seems to work,
# and its the only way I could get it to work.
try:
return afwImage.Filter(name).getFilterProperty().getName()
return afwImage.Filter(name).getName()
Copy link
Member

Choose a reason for hiding this comment

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

I believe this should be getCanonicalName(); compare the definition of getFilterProperty with the definition of getCanonicalName.

Copy link
Member

Choose a reason for hiding this comment

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

In fact, looking at the function definition, I'm pretty sure this could be entirely removed. Maybe remove the existing comment and mark removing the function as TODO for DM-27170?

@czwa
Copy link
Contributor Author

czwa commented Nov 11, 2020

The commit comment was fine before I rebased. I've removed it as you mention it's inaccurate now.

@czwa czwa merged commit bdec61e into master Nov 12, 2020
@timj timj deleted the tickets/DM-27168 branch February 18, 2021 15:49
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