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-42643: Pre-process data into catalog format for analysis_tools #37

Merged
merged 3 commits into from Jan 25, 2024

Conversation

czwa
Copy link
Collaborator

@czwa czwa commented Jan 25, 2024

No description provided.


def repackRunStats(self, runStats):
# for runStats in runStats:
raise NotImplementedError("Repack needs to be defined by subclasses.")
Copy link

Choose a reason for hiding this comment

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

Are repackExpStats and repackRunStats used anywhere? It looks like it is just repackDetStats.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

They are not, but I wanted to be able to access them in the future if they became useful.

def runQuantum(self, butlerQC, inputRefs, outputRefs):
inputs = butlerQC.get(inputRefs)

inputs["detectorDims"] = [exp.dataId.byName() for exp in inputRefs.detectorStats]
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be dict(exp.dataId.required) instead of exp.dataId.byName()

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That explains the warnings I'm seeing. I'm going to wait for the next ticket to fix this, as I have been struggling to get this ticket to pass Jenkins for the merge.

def runQuantum(self, butlerQC, inputRefs, outputRefs):
inputs = butlerQC.get(inputRefs)

inputs["detectorDims"] = [exp.dataId.byName() for exp in inputRefs.detectorStats]
Copy link
Contributor

Choose a reason for hiding this comment

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

Also here

@czwa czwa merged commit 844b428 into main Jan 25, 2024
3 checks passed
@czwa czwa deleted the tickets/DM-42643 branch January 25, 2024 23:04
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

3 participants