Skip to content

Commit f0dd9e8

Browse files
committed
Add metadata options to _find_context
1 parent d7ed7cb commit f0dd9e8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/murfey/client/analyser.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,17 @@ def _find_context(self, file_path: Path) -> bool:
122122
self._context = SPAMetadataContext("epu", self._basepath)
123123
return True
124124

125+
if "Metadata" in file_path.parts or file_path.name == "EpuSession.dm":
126+
self._context = SPAMetadataContext("epu", self._basepath)
127+
return True
128+
elif (
129+
"Batch" in file_path.parts
130+
or "SearchMaps" in file_path.parts
131+
or file_path.name == "Session.dm"
132+
):
133+
self._context = TomographyMetadataContext("tomo", self._basepath)
134+
return True
135+
125136
# CLEM workflow checks
126137
# Look for LIF and XLIF files
127138
if file_path.suffix in (".lif", ".xlif"):

0 commit comments

Comments
 (0)