From 31bb80ae4eee9be0f37f1f6a14b166582afdbac7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 24 Jul 2023 20:10:57 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../tiffimagingextractors/brukertiffimagingextractor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/roiextractors/extractors/tiffimagingextractors/brukertiffimagingextractor.py b/src/roiextractors/extractors/tiffimagingextractors/brukertiffimagingextractor.py index 271b65ae..08cbc0f5 100644 --- a/src/roiextractors/extractors/tiffimagingextractors/brukertiffimagingextractor.py +++ b/src/roiextractors/extractors/tiffimagingextractors/brukertiffimagingextractor.py @@ -83,7 +83,8 @@ def get_streams(cls, folder_path: PathType) -> dict: for channel_id, channel_name in zip(unique_channel_ids, unique_channel_names): plane_naming_pattern = rf"(?PCh{channel_id}_\d+)" plane_stream_names = [ - re.search(plane_naming_pattern, file.attrib["filename"])["stream_name"] for file in xml_root.findall(f".//File") + re.search(plane_naming_pattern, file.attrib["filename"])["stream_name"] + for file in xml_root.findall(f".//File") ] unique_plane_stream_names = natsort.natsorted(set(plane_stream_names)) streams["plane_streams"][channel_name] = unique_plane_stream_names