From 2342ed26b426d1fa95926cb890c20041c1dd0bd7 Mon Sep 17 00:00:00 2001 From: yxd92326 Date: Wed, 16 Jul 2025 08:37:03 +0100 Subject: [PATCH] Do not record a context for gain files --- src/murfey/client/analyser.py | 4 ++++ 1 file changed, 4 insertions(+) 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: