From 9cba64544333330bccf890796ec4b8b69256c975 Mon Sep 17 00:00:00 2001 From: CodyCBakerPhD Date: Wed, 7 Aug 2024 13:44:42 -0400 Subject: [PATCH] fix import --- src/pyflask/manageNeuroconv/manage_neuroconv.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pyflask/manageNeuroconv/manage_neuroconv.py b/src/pyflask/manageNeuroconv/manage_neuroconv.py index e67af9589..9cb5fd48e 100644 --- a/src/pyflask/manageNeuroconv/manage_neuroconv.py +++ b/src/pyflask/manageNeuroconv/manage_neuroconv.py @@ -2,6 +2,7 @@ import copy import hashlib +import inspect import json import math import os @@ -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 @@ -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