Skip to content

Commit

Permalink
corrected import paths for symbols from the utils subpackage
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaasRostock committed Nov 5, 2024
1 parent 17a1f3d commit 0d21156
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
)


@pytest.fixture(scope="session")
@pytest.fixture(scope="package")
def build_fmu():
build_path = Path.cwd()
build_path.mkdir(exist_ok=True)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_bouncing_ball_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from libcosimpy.CosimSlave import CosimLocalSlave

from component_model.model import Model # type: ignore
from component_model.utils import model_from_fmu
from component_model.utils.fmu import model_from_fmu


def _in_interval(x: float, x0: float, x1: float):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_make_simpletable.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from libcosimpy.CosimSlave import CosimLocalSlave

from component_model.model import Model # type: ignore
from component_model.utils import make_osp_system_structure
from component_model.utils.osp import make_osp_system_structure
from tests.examples.input_table import InputTable


Expand Down
4 changes: 2 additions & 2 deletions tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

import pytest

from component_model.logger import get_module_logger # type: ignore
from component_model.model import Model # type: ignore
from component_model.utils import model_from_fmu
from component_model.utils.fmu import model_from_fmu
from component_model.utils.logger import get_module_logger # type: ignore
from component_model.variable import Check, Variable

logger = get_module_logger(__name__, level=logging.INFO)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pint.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from pint import UnitRegistry

from component_model.logger import get_module_logger # type: ignore
from component_model.utils.logger import get_module_logger # type: ignore

logger = get_module_logger(__name__, level=logging.INFO)

Expand Down
10 changes: 3 additions & 7 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@
import pytest

from component_model.model import Model
from component_model.utils import (
make_osp_system_structure,
model_from_fmu,
read_xml,
variables_from_fmu,
xml_to_python_val,
)
from component_model.utils.fmu import model_from_fmu, read_xml, variables_from_fmu
from component_model.utils.osp import make_osp_system_structure
from component_model.utils.xml import xml_to_python_val


@pytest.fixture(scope="session")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from pythonfmu.enums import Fmi2Variability as Variability # type: ignore

from component_model.caus_var_ini import Initial
from component_model.logger import get_module_logger # type: ignore
from component_model.model import Model # type: ignore
from component_model.utils.logger import get_module_logger # type: ignore
from component_model.variable import ( # type: ignore
Check,
Variable,
Expand Down

0 comments on commit 0d21156

Please sign in to comment.