From 526b2927c16920d7748102cfa3d93082a209a126 Mon Sep 17 00:00:00 2001 From: Nina P <23741953+NP4567-dev@users.noreply.github.com> Date: Tue, 12 Nov 2024 21:34:08 +0100 Subject: [PATCH] fix: fix review --- ecologits/_ecologits.py | 4 ++-- ecologits/impacts/modeling.py | 2 +- ecologits/tracers/utils.py | 2 +- tests/test_modeling_impacts.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ecologits/_ecologits.py b/ecologits/_ecologits.py index 3f12005..dbdbd45 100644 --- a/ecologits/_ecologits.py +++ b/ecologits/_ecologits.py @@ -5,8 +5,8 @@ from packaging.version import Version -from ecologits.utils.exceptions import EcoLogitsError -from ecologits.utils.log import logger +from ecologits.exceptions import EcoLogitsError +from ecologits.log import logger def init_openai_instrumentor() -> None: diff --git a/ecologits/impacts/modeling.py b/ecologits/impacts/modeling.py index f8904b5..af114be 100644 --- a/ecologits/impacts/modeling.py +++ b/ecologits/impacts/modeling.py @@ -2,7 +2,7 @@ from pydantic import BaseModel -from ecologits.utils.exceptions import ModelingError +from ecologits.exceptions import ModelingError from ecologits.utils.range_value import ValueOrRange diff --git a/ecologits/tracers/utils.py b/ecologits/tracers/utils.py index 0f95be9..e1911a9 100644 --- a/ecologits/tracers/utils.py +++ b/ecologits/tracers/utils.py @@ -3,8 +3,8 @@ from ecologits.electricity_mix_repository import electricity_mixes from ecologits.impacts.llm import compute_llm_impacts from ecologits.impacts.modeling import Impacts +from ecologits.log import logger from ecologits.model_repository import ArchitectureTypes, models -from ecologits.utils.log import logger def _avg(value_range: tuple) -> float: diff --git a/tests/test_modeling_impacts.py b/tests/test_modeling_impacts.py index 9bec602..59b9bf1 100644 --- a/tests/test_modeling_impacts.py +++ b/tests/test_modeling_impacts.py @@ -3,7 +3,7 @@ import pytest from ecologits.impacts.modeling import Impact, Energy, GWP, ADPe, PE -from ecologits.utils.exceptions import ModelingError +from ecologits.exceptions import ModelingError from ecologits.utils.range_value import RangeValue