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-38882: Update LSSTCam and TS8 physical filter names #451

Merged
merged 3 commits into from May 19, 2023

Conversation

jchiang87
Copy link
Contributor

  • The LSSTCam physical filter names are provided.
  • Filter combinations for use with the CCOB are also added for LSSTCam and TS8.

@@ -662,6 +662,14 @@ def to_physical_filter(self):
if not joined:
joined = "unknown"

# Remove blank and "empty" fields.
joined = FILTER_DELIMITER.join(_ for _ in joined.split(FILTER_DELIMITER)
Copy link
Member

Choose a reason for hiding this comment

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

Joining and then splitting seems and joining again seems wrong to me but I can see that you don't want to duplicate the keyword retrieval logic in _join_keyword_values. Looking at _join_keyword_values it might have a bug in it in that it allow empty string to be joined which seems unlikely to be what people want. I could add an extra parameter that allows you to specify values that should be treated as missing and then we wouldn't need this splitting here (although then you might not be able to tell the difference between "unknown" and "empty").

For now I guess we can leave it as it is.

@jchiang87 jchiang87 merged commit f55ae41 into main May 19, 2023
2 checks passed
@jchiang87 jchiang87 deleted the tickets/DM-38882 branch May 19, 2023 19:40
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