From 7a7d9bdc90ce27808ba2b69143484c3f5515d465 Mon Sep 17 00:00:00 2001 From: Steph Merritt Date: Tue, 17 Sep 2024 16:51:07 +0000 Subject: [PATCH] Moving import statement --- src/adler/dataclasses/AdlerPlanetoid.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/adler/dataclasses/AdlerPlanetoid.py b/src/adler/dataclasses/AdlerPlanetoid.py index 5893b50..4a9fcd6 100644 --- a/src/adler/dataclasses/AdlerPlanetoid.py +++ b/src/adler/dataclasses/AdlerPlanetoid.py @@ -10,8 +10,6 @@ from adler.dataclasses.AdlerData import AdlerData from adler.dataclasses.dataclass_utilities import get_data_table -from adler.lasair.cassandra_fetcher import CassandraFetcher - logger = logging.getLogger(__name__) @@ -122,6 +120,9 @@ def construct_from_SQL( def construct_from_cassandra( cls, ssObjectId, filter_list=["u", "g", "r", "i", "z", "y"], date_range=[60000.0, 67300.0] ): # pragma: no cover + + from adler.lasair.cassandra_fetcher import CassandraFetcher + fetcher = CassandraFetcher(cassandra_hosts=["10.21.3.123"]) MPCORB_dict = fetcher.fetch_MPCORB(ssObjectId)