From bc131f5db821c7fc4f3546466612e0982ba72515 Mon Sep 17 00:00:00 2001 From: Max Drexler <mndrexler@wisc.edu> Date: Fri, 19 Jul 2024 19:00:13 -0500 Subject: [PATCH] fix circular import error --- grib_processor/grib.py | 4 ++-- grib_processor/main.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/grib_processor/grib.py b/grib_processor/grib.py index 03dc624..afcc3c5 100644 --- a/grib_processor/grib.py +++ b/grib_processor/grib.py @@ -17,7 +17,7 @@ import grib2io from ssec_amqp import utils as amqp_utils from typing_extensions import Literal, TypedDict, TypeAlias -from grib_processor import data +import grib_processor.data if sys.version_info < (3, 9): @@ -101,7 +101,7 @@ def load_xcd_models( global _XCD_MODELS if _XCD_MODELS is None: # This MUST match name of xcd file in grib_processor.data - data_path = resources.files(data) / "xcd_model_info.json" + data_path = resources.files(grib_processor.data) / "xcd_model_info.json" with data_path.open("r") as xcd_data: _XCD_MODELS = json.load(xcd_data) for addtnl in addtnl_models: diff --git a/grib_processor/main.py b/grib_processor/main.py index 534592f..298ea2c 100644 --- a/grib_processor/main.py +++ b/grib_processor/main.py @@ -95,7 +95,7 @@ def setup() -> tuple[Iterable[GribPayload], Callable[[GribPayload], None]]: "-v", "--verbosity", type=int, - default=3, + default=1, help="Specify verbosity to stderr from 0 (CRITICAL) to 5 (DEBUG).", ) parser.add_argument( -- GitLab