Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD committed Aug 7, 2024
1 parent 9e17401 commit 9cba645
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pyflask/manageNeuroconv/manage_neuroconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import copy
import hashlib
import inspect
import json
import math
import os
Expand All @@ -13,7 +14,6 @@
from shutil import copytree, rmtree
from typing import Any, Dict, List, Optional, Union

import signature
from pynwb import NWBFile
from tqdm_publisher import TQDMProgressHandler

Expand Down Expand Up @@ -375,7 +375,9 @@ def add_to_nwbfile(self, nwbfile: NWBFile, metadata, conversion_options: Optiona

# Certain subconverters fully expose control over their interfaces conversion options
# (such as iterator options, including progress bar details)
subconverter_keyword_arguments = list(signature(data_interface.add_to_nwbfile).parameters.keys())
subconverter_keyword_arguments = list(
inspect.signature(data_interface.add_to_nwbfile).parameters.keys()
)
if "conversion_options" in subconverter_keyword_arguments:
subconverter_kwargs["conversion_options"] = conversion_options.get(interface_key, None)
# Others do not, and instead expose simplified global keywords similar to a classic interface
Expand Down

0 comments on commit 9cba645

Please sign in to comment.