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