Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 24, 2023
1 parent 2bc4cf8 commit 31bb80a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"(?P<stream_name>Ch{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
Expand Down

0 comments on commit 31bb80a

Please sign in to comment.