diff --git a/arpes/endstations/plugin/SPD_main.py b/arpes/endstations/plugin/SPD_main.py index 27d4face..4919258c 100644 --- a/arpes/endstations/plugin/SPD_main.py +++ b/arpes/endstations/plugin/SPD_main.py @@ -32,6 +32,11 @@ class SPDEndstation(HemisphericalEndstation, SingleFileEndstation): ] _TOLERATED_EXTENSIONS: ClassVar[set[str]] = {".itx", ".sp2"} + _SEARCH_PATTERNS: tuple[str, ...] = ( + r"\S+ \d\d\d\d-\d\d-\d\d_\d\dh\d\dm\d\ds_(\d+)_[^\.]+.itx", + r"PES_\d+_(\d+).itx", + ) + RENAME_KEYS: ClassVar[dict[str, str]] = { "Excitation Energy": "hv", "WorkFunction": "workfunction", diff --git a/arpes/preparation/axis_preparation.py b/arpes/preparation/axis_preparation.py index d9f4c1e6..4550744a 100644 --- a/arpes/preparation/axis_preparation.py +++ b/arpes/preparation/axis_preparation.py @@ -194,7 +194,7 @@ def transform_dataarray_axis( """Applies a function onto a DataArray axis. Args: - f ([TODO:type]): [TODO:description] + func ([TODO:type]): [TODO:description] old_axis_name(str): [TODO:description] new_axis_name(str): [TODO:description] new_axis ([TODO:type]): [TODO:description] diff --git a/arpes/provenance.py b/arpes/provenance.py index 76718392..28ef3085 100644 --- a/arpes/provenance.py +++ b/arpes/provenance.py @@ -201,7 +201,7 @@ def func_wrapper(*args: Incomplete, **kwargs: Incomplete) -> Incomplete: def provenance( child_arr: DataType, parent_arr: DataType | list[DataType], - record: dict[str, str | int | float | tuple[str, ...]], + record: dict[str, str | int | float | tuple[str, ...] | list[str]], *, keep_parent_ref: bool = False, ) -> None: