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 May 30, 2024
1 parent e6f6614 commit 475eb16
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/pyflask/manageNeuroconv/manage_neuroconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand All @@ -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"] = []
Expand All @@ -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
Expand Down

0 comments on commit 475eb16

Please sign in to comment.