diff --git a/src/murfey/client/analyser.py b/src/murfey/client/analyser.py index e43523dc5..86c07b371 100644 --- a/src/murfey/client/analyser.py +++ b/src/murfey/client/analyser.py @@ -149,6 +149,10 @@ def _find_context(self, file_path: Path) -> bool: # Tomography and SPA workflow checks split_file_name = file_path.name.split("_") if split_file_name: + # Skip context for gain files + if "gain" in split_file_name[-1]: + return False + # Files starting with "FoilHole" belong to the SPA workflow if split_file_name[0].startswith("FoilHole"): if not self._context: