From 475eb161c30a5095128870501b4138d7263227d5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 30 May 2024 16:10:39 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/pyflask/manageNeuroconv/manage_neuroconv.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/pyflask/manageNeuroconv/manage_neuroconv.py b/src/pyflask/manageNeuroconv/manage_neuroconv.py index 1e3e4edfb..d282e5c8c 100644 --- a/src/pyflask/manageNeuroconv/manage_neuroconv.py +++ b/src/pyflask/manageNeuroconv/manage_neuroconv.py @@ -740,14 +740,12 @@ def set_interface_alignment(converter, alignment_info): def get_interface_alignment(info: dict) -> dict: - from neuroconv.datainterfaces.ecephys.basesortingextractorinterface import ( - BaseSortingExtractorInterface, - ) - from neuroconv.datainterfaces.ecephys.baserecordingextractorinterface import ( BaseRecordingExtractorInterface, ) - + from neuroconv.datainterfaces.ecephys.basesortingextractorinterface import ( + BaseSortingExtractorInterface, + ) alignment_info = info.get("alignment", {}) converter = instantiate_custom_converter(info["source_data"], info["interfaces"]) @@ -774,8 +772,6 @@ def get_interface_alignment(info: dict) -> dict: else: timestamps[name] = [] - - # Derive compatible interfaces def on_sorting_interface(name, sorting_interface): metadata[name]["compatible"] = [] @@ -786,9 +782,9 @@ def on_recording_interface(sub_name, recording_interface): metadata[name]["compatible"].append(sub_name) except Exception: pass - + map_interfaces(on_recording_interface, converter=converter, to_match=BaseRecordingExtractorInterface) - + map_interfaces(on_sorting_interface, converter=converter, to_match=BaseSortingExtractorInterface) # Return the metadata and timestamps