Skip to content

Commit 0d363e7

Browse files
committed
Reinstate the [ form and test one more case
1 parent 446f6c0 commit 0d363e7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/murfey/client/analyser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ def _find_context(self, file_path: Path) -> bool:
170170
# Files starting with "Position" belong to the standard tomography workflow
171171
if (
172172
split_file_stem[0] == "Position"
173+
or "[" in file_path.name
173174
or split_file_stem[-1] in ["Fractions", "fractions", "EER"]
174175
or file_path.suffix == ".mdoc"
175176
):

tests/client/test_analyser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
["visit/Thumbnails/file.mrc", TomographyMetadataContext],
2727
# SPA
2828
["visit/FoilHole_01234_fractions.tiff", SPAModularContext],
29+
["visit/FoilHole_01234_EER.eer", SPAModularContext],
2930
# SPA metadata
3031
["atlas/atlas.mrc", SPAMetadataContext],
3132
["visit/EpuSession.dm", SPAMetadataContext],
@@ -129,7 +130,7 @@ def test_analyser_setup_and_stopping(tmp_path):
129130

130131

131132
def test_analyser_tomo_determination(tmp_path):
132-
tomo_file = tmp_path / "Position_1_[30.0]_fractions.tiff"
133+
tomo_file = tmp_path / "Position_1_[30.0].tiff"
133134
analyser = Analyser(tmp_path)
134135
analyser.start()
135136
analyser.queue.put(tomo_file)

0 commit comments

Comments
 (0)