Skip to content

Commit

Permalink
Rename types submodule to result
Browse files Browse the repository at this point in the history
  • Loading branch information
olafmersmann committed Jul 22, 2024
1 parent c702733 commit feab715
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/cocoviz/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from ._version import __version__ # noqa: F401
from .rtp import rtpplot, runtime_profiles
from .types import ProblemDescription, Result, ResultSet

from .result import ProblemDescription, Result, ResultSet

__all__ = ["ProblemDescription", "Result", "ResultSet", "rtpplot", "runtime_profiles"]
2 changes: 1 addition & 1 deletion src/cocoviz/types.py → src/cocoviz/result.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Data structures collect experimental results"""
"""Data structures for collecting experimental results"""

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/cocoviz/rtp.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import scipy.stats as stats

from .targets import linear_targets
from .types import ResultSet
from .result import ResultSet
from .exceptions import BadResultSetException


Expand Down
2 changes: 1 addition & 1 deletion src/cocoviz/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import polars as pl
from numpy.typing import ArrayLike

from .types import ProblemDescription, ResultSet
from .result import ProblemDescription, ResultSet


def linear_targets(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from polars.testing import assert_frame_equal

from cocoviz.types import Result, ProblemDescription
from cocoviz.result import Result, ProblemDescription


HV_a1 = {
Expand Down
2 changes: 1 addition & 1 deletion tests/test_resultset.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest

from cocoviz.exceptions import IndicatorMismatchException
from cocoviz.types import Result, ResultSet, ProblemDescription
from cocoviz.result import Result, ResultSet, ProblemDescription


HV_a1 = {
Expand Down

0 comments on commit feab715

Please sign in to comment.