From 3094877f6263e6c9c38bfbe9b027b1a0942ea617 Mon Sep 17 00:00:00 2001 From: Marcus Oskarsson Date: Fri, 9 Feb 2024 15:58:47 +0100 Subject: [PATCH] [WF] - Fixing imports, making sure we can import queue_model_objects standalone --- mxcubecore/model/queue_model_objects.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mxcubecore/model/queue_model_objects.py b/mxcubecore/model/queue_model_objects.py index 9e19f7ac29..7fc8357ef5 100644 --- a/mxcubecore/model/queue_model_objects.py +++ b/mxcubecore/model/queue_model_objects.py @@ -29,6 +29,12 @@ from mxcubecore.model import queue_model_enumerables +try: + from mxcubecore.model import crystal_symmetry + import ruamel.yaml as yaml +except Exception: + logging.getLogger("HWR").warning("Cannot import dependenices needed for GPHL workflows - GPhL workflows might not work") + # This module is used as a self contained entity by the BES # workflows, so we need to make sure that this module can be # imported eventhough HardwareRepository is not avilable.