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

Ensure incompletely extracted bin files get re-extracted #392

Merged
merged 25 commits into from
Jul 25, 2023

Conversation

alex-l-kong
Copy link
Contributor

What is the purpose of this PR?

Closes #389. In some cases, even if the .json file is written for a FOV during a MIBI run, the .bin file will not have been fully copied over. The watcher needs to account for these cases because otherwise, the data extracted from the .bin file will be incomplete, leading to the artifacts highlighted in the issue.

How did you implement your changes

When the control statement in check_complete runs, one final pass of all the FOVs needs to be conducted. Offending .bin files will have their created timestamp be later than their modified timestamp, in which case, the .bin file is once again thrown into the extraction pipeline.

Remaining issues

Full testing needs to be conducted on @ngreenwald's cohort.

@alex-l-kong alex-l-kong self-assigned this Jul 17, 2023
@alex-l-kong alex-l-kong marked this pull request as draft July 17, 2023 22:03
@alex-l-kong alex-l-kong marked this pull request as ready for review July 24, 2023 20:37
@alex-l-kong
Copy link
Contributor Author

@ngreenwald with this PR, your STANFORD cohort stitched images don't show the corrupted artifacts on the bottom of images anymore.

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.

Just an additional test suggestion.

tests/fov_watcher_test.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.

Just some docs. Looks good otherwise.

src/toffy/fov_watcher.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!

Copy link
Member

@ngreenwald ngreenwald left a comment

Choose a reason for hiding this comment

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

Nice stuff

@ngreenwald ngreenwald merged commit 9197a7b into main Jul 25, 2023
4 checks passed
@ngreenwald ngreenwald deleted the incomplete_bins branch July 25, 2023 18:36
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.

Extracted images have weird artifact
4 participants