Skip to content

Commit 1fd74f2

Browse files
committed
Wrong logic when checking Context in '_analyse'
1 parent dbd81d7 commit 1fd74f2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/murfey/client/analyser.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -449,20 +449,20 @@ def _analyse(self):
449449
self.notify(dc_metadata)
450450

451451
# Contexts that can be immediately posted without additional work
452-
elif "CLEMContext" not in str(self._context):
452+
elif "CLEMContext" in str(self._context):
453453
logger.debug(
454454
f"File {transferred_file.name!r} is part of CLEM workflow"
455455
)
456456
self.post_transfer(transferred_file)
457-
elif "FIBContext" not in str(self._context):
457+
elif "FIBContext" in str(self._context):
458458
logger.debug(
459459
f"File {transferred_file.name!r} is part of the FIB workflow"
460460
)
461461
self.post_transfer(transferred_file)
462-
elif "SXTContext" not in str(self._context):
462+
elif "SXTContext" in str(self._context):
463463
logger.debug(f"File {transferred_file.name!r} is an SXT file")
464464
self.post_transfer(transferred_file)
465-
elif "AtlasContext" not in str(self._context):
465+
elif "AtlasContext" in str(self._context):
466466
logger.debug(f"File {transferred_file.name!r} is part of the atlas")
467467
self.post_transfer(transferred_file)
468468

0 commit comments

Comments
 (0)