Skip to content

Commit

Permalink
Merge pull request #175 from ImperialCollegeLondon/rename-typing
Browse files Browse the repository at this point in the history
Rename typing module to avoid clash with built-in python module
  • Loading branch information
tomjholland authored Dec 7, 2024
2 parents 54a3b89 + 98d6f8c commit 9206e2a
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyprobe/analysis/cycling.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

from pyprobe.analysis.utils import AnalysisValidator
from pyprobe.filters import Experiment, get_cycle_column
from pyprobe.pyprobe_types import FilterToCycleType
from pyprobe.result import Result
from pyprobe.typing import FilterToCycleType


def _create_capacity_throughput(
Expand Down
2 changes: 1 addition & 1 deletion pyprobe/analysis/degradation_mode_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
import pyprobe.analysis.base.degradation_mode_analysis_functions as dma_functions
from pyprobe.analysis import smoothing, utils
from pyprobe.analysis.utils import AnalysisValidator
from pyprobe.pyprobe_types import FilterToCycleType, PyProBEDataType
from pyprobe.result import Result
from pyprobe.typing import FilterToCycleType, PyProBEDataType


def _get_gradient(
Expand Down
2 changes: 1 addition & 1 deletion pyprobe/analysis/differentiation.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

import pyprobe.analysis.base.differentiation_functions as diff_functions
from pyprobe.analysis.utils import AnalysisValidator
from pyprobe.pyprobe_types import PyProBEDataType
from pyprobe.result import Result
from pyprobe.typing import PyProBEDataType


@validate_call
Expand Down
2 changes: 1 addition & 1 deletion pyprobe/analysis/pulsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

from pyprobe.analysis.utils import AnalysisValidator
from pyprobe.filters import Experiment, Step
from pyprobe.pyprobe_types import PyProBEDataType
from pyprobe.result import Result
from pyprobe.typing import PyProBEDataType


def _get_pulse_number(data: pl.DataFrame | pl.LazyFrame) -> pl.DataFrame | pl.LazyFrame:
Expand Down
2 changes: 1 addition & 1 deletion pyprobe/analysis/smoothing.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
from scipy.signal import savgol_filter

from pyprobe.analysis.utils import AnalysisValidator
from pyprobe.pyprobe_types import PyProBEDataType
from pyprobe.result import Result
from pyprobe.typing import PyProBEDataType


@validate_call
Expand Down
2 changes: 1 addition & 1 deletion pyprobe/analysis/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from numpy.typing import NDArray
from pydantic import BaseModel, model_validator

from pyprobe.pyprobe_types import PyProBEDataType
from pyprobe.result import Result
from pyprobe.typing import PyProBEDataType


def assemble_array(input_data: List[Result], name: str) -> NDArray[Any]:
Expand Down
2 changes: 1 addition & 1 deletion pyprobe/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from pyprobe.rawdata import RawData

if TYPE_CHECKING:
from pyprobe.typing import ( # , FilterToStepType
from pyprobe.pyprobe_types import ( # , FilterToStepType
ExperimentOrCycleType,
FilterToCycleType,
)
Expand Down
File renamed without changes.

0 comments on commit 9206e2a

Please sign in to comment.