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

fix a clear mismatch... #209

Merged
merged 1 commit into from
Feb 28, 2024
Merged

fix a clear mismatch... #209

merged 1 commit into from
Feb 28, 2024

Conversation

YifanC
Copy link
Collaborator

@YifanC YifanC commented Feb 28, 2024

No description provided.

@YifanC YifanC requested review from mjkramer and krwood February 28, 2024 18:24
Copy link
Member

@krwood krwood left a comment

Choose a reason for hiding this comment

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

I think the second compound OR statement after the first AND is necessarily TRUE all the time. Perhaps we just remove?

# Prepare the light waveform padding (only necessary for module variation)
if mod2mod_variation:
# Prepare the light waveform padding
if light.LIGHT_SIMULATED and (light.LIGHT_TRIG_MODE == 0 or light.LIGHT_TRIG_MODE == 1):
Copy link
Member

Choose a reason for hiding this comment

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

Aren't LIGHT_TRIG_MODE == 0 or LIGHT_TRIG_MODE == 1 the only supported options? Maybe this can just be if light.LIGHT_SIMULATED: ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, currently. When the whole light detector system is triggered simultaneously. I was thinking in future if we trigger each module/tpc separately then you don't want this padding...

@YifanC YifanC merged commit 9be8d90 into develop Feb 28, 2024
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.

3 participants