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

Avoid matching names like ._IMAT_Flower_Flat_Before_000000.tif #1888

Closed
samtygier-stfc opened this issue Aug 3, 2023 · 0 comments · Fixed by #1896
Closed

Avoid matching names like ._IMAT_Flower_Flat_Before_000000.tif #1888

samtygier-stfc opened this issue Aug 3, 2023 · 0 comments · Fixed by #1896
Assignees

Comments

@samtygier-stfc
Copy link
Collaborator

Summary

We have a dataset that has some garbage files with names like ._IMAT_Flower_Flat_Before_000000.tif. These are possibly caused during an interrupted file copy.

#1878 made the file pattern matching a lot less strict, so we now pick up these files as candidates for the flat and dark. We should probably ignore any file starting with a . as those are very unlikely to be actual valid data files.

Steps To Reproduce

Make a copy of a dataset, eg IMAT00010675
In the Flat_Before make some problem files
for f in *.tif ; do touch ._${f} ; done
In MI do Load Dataset
Select the sample from the Tomo directory
Note that ._IMAT_Flower_Flat_Before_000000.tif is picked up as the Flat Before
Load and note the error message

Expected Behaviour

Files starting with a . should not be picked automatically

Context

Probably introduced by #1878

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant