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 Jun 4, 2024
1 parent e2f8141 commit b2862c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -290,15 +289,15 @@ 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",
message: "Please wait...",
});

const { metadata } = data;
console.warn('GOT', data)
console.warn("GOT", data);

if (Object.keys(metadata).length === 0) {
this.notify(
Expand Down
7 changes: 2 additions & 5 deletions src/pyflask/manageNeuroconv/manage_neuroconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand All @@ -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
Expand All @@ -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)
Expand All @@ -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,
)
Expand Down

0 comments on commit b2862c6

Please sign in to comment.