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 3, 2024
1 parent 4bf639d commit 81cf131
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/pyflask/manageNeuroconv/manage_neuroconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,6 @@ def create_file(
import requests
from tqdm_publisher import TQDMProgressSubscriber


project_name = info.get("project_name")

run_stub_test = info.get("stub_test", False)
Expand Down Expand Up @@ -926,7 +925,6 @@ def update_conversion_progress(message):
progress_bar_options=progress_bar_options,
)


# Actually run the conversion
converter.run_conversion(
metadata=metadata,
Expand All @@ -953,7 +951,7 @@ def update_conversion_progress(message):


def extract_backend_configuration(info: dict) -> dict:

from neuroconv.tools.nwb_helpers import (
get_default_backend_configuration,
make_nwbfile_from_metadata,
Expand All @@ -971,15 +969,15 @@ def extract_backend_configuration(info: dict) -> dict:
converter.add_to_nwbfile(nwbfile, metadata=metadata)

configuration = get_default_backend_configuration(nwbfile=nwbfile, backend=backend)

for dataset_name, dataset_configuration in results.items():
for key, value in dataset_configuration.items():
if key not in PROPS_TO_IGNORE:
setattr(configuration.dataset_configurations[dataset_name], key, value)

return configuration


def get_backend_configuration(info: dict) -> dict:

import numpy as np
Expand Down

0 comments on commit 81cf131

Please sign in to comment.