From b2862c6e9bbbdf2ee99d7dfebeaee17ef8982c11 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 4 Jun 2024 18:04:17 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../components/pages/guided-mode/data/GuidedSourceData.js | 7 +++---- src/pyflask/manageNeuroconv/manage_neuroconv.py | 7 ++----- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/electron/frontend/core/components/pages/guided-mode/data/GuidedSourceData.js b/src/electron/frontend/core/components/pages/guided-mode/data/GuidedSourceData.js index 8b975d966..4a84177ba 100644 --- a/src/electron/frontend/core/components/pages/guided-mode/data/GuidedSourceData.js +++ b/src/electron/frontend/core/components/pages/guided-mode/data/GuidedSourceData.js @@ -275,9 +275,8 @@ export class GuidedSourceDataPage extends ManagedPage { globalState.project.alignment = alignment.results; this.unsavedUpdates = "conversions"; } - - await this.save(); + await this.save(); const sourceCopy = structuredClone(globalState.results[subject][session].source_data); @@ -290,7 +289,7 @@ export class GuidedSourceDataPage extends ManagedPage { alignment: alignmentInfo, }; - console.warn('Sending', sessionInfo) + console.warn("Sending", sessionInfo); const data = await run("neuroconv/alignment", sessionInfo, { title: "Checking Alignment", @@ -298,7 +297,7 @@ export class GuidedSourceDataPage extends ManagedPage { }); const { metadata } = data; - console.warn('GOT', data) + console.warn("GOT", data); if (Object.keys(metadata).length === 0) { this.notify( diff --git a/src/pyflask/manageNeuroconv/manage_neuroconv.py b/src/pyflask/manageNeuroconv/manage_neuroconv.py index 7972a2308..2e02e1640 100644 --- a/src/pyflask/manageNeuroconv/manage_neuroconv.py +++ b/src/pyflask/manageNeuroconv/manage_neuroconv.py @@ -756,8 +756,6 @@ def get_compatible_interfaces(info: dict) -> dict: from neuroconv.datainterfaces.ecephys.baserecordingextractorinterface import ( BaseRecordingExtractorInterface, ) - - from neuroconv.datainterfaces.ecephys.basesortingextractorinterface import ( BaseSortingExtractorInterface, ) @@ -773,7 +771,6 @@ def get_compatible_interfaces(info: dict) -> dict: if is_sorting is True: compatible[name] = [] - # If at least one recording and sorting interface is selected on the formats page # Then it is possible the two could be linked (the sorting was applied to the recording) # But there are very strict conditions from SpikeInterface determining compatibility @@ -783,7 +780,7 @@ def get_compatible_interfaces(info: dict) -> dict: for interface_key, interface in converter.data_interface_objects.items() if isinstance(interface, BaseRecordingExtractorInterface) } - + for recording_interface_key, recording_interface in sibling_recording_interfaces.items(): try: interface.register_recording(recording_interface=recording_interface) @@ -793,10 +790,10 @@ def get_compatible_interfaces(info: dict) -> dict: return compatible + def get_interface_alignment(info: dict) -> dict: from neuroconv.basetemporalalignmentinterface import BaseTemporalAlignmentInterface - from neuroconv.datainterfaces.ecephys.basesortingextractorinterface import ( BaseSortingExtractorInterface, )