From cb2d999caa39319115f1eaae270266513a5e25eb Mon Sep 17 00:00:00 2001 From: Ryuichi Arafune Date: Tue, 17 Oct 2023 17:39:09 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20=20update=20=5FSEARCH=5FPATTERN?= =?UTF-8?q?=20for=20itx=20file=20generated=20by=20Prodigy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- arpes/endstations/plugin/SPD_main.py | 5 +++++ arpes/preparation/axis_preparation.py | 2 +- arpes/provenance.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) 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: