Skip to content

Commit 958c551

Browse files
Do not record a context for gain files (#633)
1 parent 7a14ecc commit 958c551

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/murfey/client/analyser.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ def _find_context(self, file_path: Path) -> bool:
149149
# Tomography and SPA workflow checks
150150
split_file_name = file_path.name.split("_")
151151
if split_file_name:
152+
# Skip context for gain files
153+
if "gain" in split_file_name[-1]:
154+
return False
155+
152156
# Files starting with "FoilHole" belong to the SPA workflow
153157
if split_file_name[0].startswith("FoilHole"):
154158
if not self._context:

0 commit comments

Comments
 (0)