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

Turn off combined.csv file warnings for intermediate callbacks in watcher #393

Merged
merged 6 commits into from
Jul 24, 2023

Conversation

alex-l-kong
Copy link
Contributor

What is the purpose of this PR?

Closes #387. The new watcher setup means we'll be defaulting to using intermediate callbacks for plotting QC and MPH metrics. This means combined.csv files, normally removed at the end of the watcher, now get removed after every FOV. The warning that gets thrown as a result can appear several times on cohorts with many FOVs, which we want to turn off in this situation.

How did you implement your changes

Pass a warn_overwrite flag to the relevant functions. Also include this check for QC combined file generation and overwriting.

Remaining issues

Need testing on a live run, per the usual.

@alex-l-kong alex-l-kong self-assigned this Jul 19, 2023
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@alex-l-kong alex-l-kong marked this pull request as draft July 19, 2023 20:57
@alex-l-kong alex-l-kong marked this pull request as ready for review July 21, 2023 20:03
Copy link
Contributor

@camisowers camisowers left a comment

Choose a reason for hiding this comment

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

Looks good, just a question about the removed build_callbacks code.

src/toffy/watcher_callbacks.py Show resolved Hide resolved
Copy link
Contributor

@srivarra srivarra left a comment

Choose a reason for hiding this comment

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

Looks good!

@alex-l-kong alex-l-kong requested a review from camisowers July 21, 2023 22:05
@alex-l-kong alex-l-kong requested a review from ngreenwald July 21, 2023 23:13
@ngreenwald ngreenwald merged commit 15e294d into main Jul 24, 2023
@ngreenwald ngreenwald deleted the combine_warning branch July 24, 2023 16:49
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.

combine_run_metrics throws removed combined file warning on each FOV run through the watcher
4 participants