From 8366d500e0d8d34f4068eda5eb457d0a102ed0be Mon Sep 17 00:00:00 2001 From: Merlin Fisher-Levine Date: Wed, 14 Feb 2024 17:28:16 -0800 Subject: [PATCH] Fix import of EfdClient --- .../summit/utils/m1m3/inertia_compensation_system.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/python/lsst/summit/utils/m1m3/inertia_compensation_system.py b/python/lsst/summit/utils/m1m3/inertia_compensation_system.py index 4cef7a55..96e73fde 100644 --- a/python/lsst/summit/utils/m1m3/inertia_compensation_system.py +++ b/python/lsst/summit/utils/m1m3/inertia_compensation_system.py @@ -27,10 +27,17 @@ from astropy import units as u from astropy.time import Time -from lsst.summit.utils.efdUtils import EfdClient, getEfdData +from lsst.summit.utils.efdUtils import getEfdData from lsst.summit.utils.tmaUtils import TMAEvent, TMAEventMaker from lsst.ts.xml.tables.m1m3 import FATABLE_XFA, FATABLE_YFA, FATABLE_ZFA, HP_COUNT +HAS_EFD_CLIENT = True +try: + from lsst_efd_client import EfdClient +except ImportError: + EfdClient = None # this is currently just for mypy + HAS_EFD_CLIENT = False + __all__ = [ "M1M3ICSAnalysis", "find_adjacent_true_regions",