Browse Source

fixed some typing issues

main
Holger Frey 1 year ago
parent
commit
b917fa47ee
  1. 8
      src/sensospot_tools/hdr.py
  2. 2
      src/sensospot_tools/helpers.py
  3. 2
      src/sensospot_tools/selection.py

8
src/sensospot_tools/hdr.py

@ -1,4 +1,4 @@
from typing import Union from __future__ import annotations
import pandas import pandas
@ -8,7 +8,7 @@ from .selection import select
def select_hdr_data( def select_hdr_data(
data: pandas.DataFrame, data: pandas.DataFrame,
spot_id_columns: Union[list[str], str], spot_id_columns: str | list[str],
time_column: str, time_column: str,
overflow_column: str, overflow_column: str,
) -> pandas.DataFrame: ) -> pandas.DataFrame:
@ -69,9 +69,9 @@ def select_hdr_data(
def normalize( def normalize(
data: pandas.DataFrame, data: pandas.DataFrame,
normalized_time: Union[int, float], normalized_time: float,
time_column: str, time_column: str,
value_columns: Union[list[str], str], value_columns: str | list[str],
template: str = "Normalized.{}", template: str = "Normalized.{}",
) -> pandas.DataFrame: ) -> pandas.DataFrame:
"""Normalizes values to a normalized exposure time. """Normalizes values to a normalized exposure time.

2
src/sensospot_tools/helpers.py

@ -1,3 +1,5 @@
from __future__ import annotations
import itertools import itertools
from typing import Any from typing import Any

2
src/sensospot_tools/selection.py

@ -1,3 +1,5 @@
from __future__ import annotations
from typing import Any, Iterator from typing import Any, Iterator
import pandas import pandas

Loading…
Cancel
Save