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-46918: Updates to use the_monster as a refcat #298

Merged
merged 1 commit into from
Oct 22, 2024
Merged

Conversation

psferguson
Copy link
Contributor

No description provided.

Copy link
Contributor

@erykoff erykoff left a comment

Choose a reason for hiding this comment

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

Can you add a bit more about what these fields/variables mean? (I know this is mostly pre-existing but it's definitely confusing).

@@ -84,6 +84,8 @@ def runQuantum(self, butlerQC, inputRefs, outputRefs):
# the HSC ones do, this is a bit hacky but fixes this
if bands[0].startswith("lsst") or "sim" in bands[0] or "smeared" in bands[0]:
bands = self.config.filterNames
elif bands[0].startswith("monster"):
bands = [band[-1] for band in bands]
Copy link
Contributor

Choose a reason for hiding this comment

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

Why the -1? I don't fully follow this code (or why everything is so hacked up...)

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 added some more documentation, is this enough?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah that helps. This is ticketed to fix this correctly, right? And fortunately we only have one character bands in the monster (maybe worth mentioning that we don't support NB in the monster).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added the ticket number to fix this

@psferguson psferguson merged commit 1dbd7f8 into main Oct 22, 2024
8 checks passed
@psferguson psferguson deleted the tickets/DM-46918 branch October 22, 2024 17:47
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.

2 participants