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

Changes to savewhen behavoir #554

Merged
merged 3 commits into from Oct 14, 2021
Merged

Changes to savewhen behavoir #554

merged 3 commits into from Oct 14, 2021

Conversation

JoranAngevaare
Copy link
Member

What is the problem / what does the code in this PR do
SaveWhen.NEVER -> SaveWhen.EXPLICIT changes for the sake of superruns

e.g. to fix https://github.com/XENONnT/straxen/pull/691/checks?check_run_id=3886562862#step:8:315

Can you briefly describe how it works?
See #509 for a more detailed discussion

@@ -495,7 +495,7 @@ def do_compute(self, chunk_i=None, **kwargs):

# For non-saving plugins, don't be strict, just take whatever
# endtimes are available and don't check time-consistency
if int(self.save_when) == strax.SaveWhen.NEVER:
if int(self.save_when) <= strax.SaveWhen.EXPLICIT:
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

@WenzDaniel WenzDaniel left a comment

Choose a reason for hiding this comment

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

Rhanks, works like a charm.

@WenzDaniel WenzDaniel merged commit 8f07d25 into master Oct 14, 2021
@WenzDaniel WenzDaniel deleted the save_when_changes branch October 14, 2021 06:52
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