diff --git a/src/pyflask/manageNeuroconv/manage_neuroconv.py b/src/pyflask/manageNeuroconv/manage_neuroconv.py index fd529f902..824f8c47b 100644 --- a/src/pyflask/manageNeuroconv/manage_neuroconv.py +++ b/src/pyflask/manageNeuroconv/manage_neuroconv.py @@ -648,7 +648,7 @@ def on_recording_interface(name, recording_interface): def get_check_function(check_function_name: str) -> callable: """Function used to fetch an arbitrary NWB Inspector function.""" - from nwbinspector.nwbinspector import configure_checks, load_config + from nwbinspector import configure_checks, load_config dandi_check_list = configure_checks(config=load_config(filepath_or_keyword="dandi")) dandi_check_registry = {check.__name__: check for check in dandi_check_list} @@ -662,7 +662,7 @@ def get_check_function(check_function_name: str) -> callable: def run_check_function(check_function: callable, arg: dict) -> dict: """.Function used to run an arbitrary NWB Inspector function.""" - from nwbinspector.register_checks import Importance, InspectorMessage + from nwbinspector import Importance, InspectorMessage output = check_function(arg) if isinstance(output, InspectorMessage): @@ -718,7 +718,7 @@ def validate_metadata( timezone: Optional[str] = None, ) -> dict: """Function used to validate data using an arbitrary NWB Inspector function.""" - from nwbinspector.nwbinspector import InspectorOutputJSONEncoder + from nwbinspector import InspectorOutputJSONEncoder from pynwb.file import NWBFile, Subject check_function = get_check_function(check_function_name) @@ -1458,7 +1458,7 @@ def _inspect_file_per_job( ) -> list: import requests - from nwbinspector import nwbinspector + import nwbinspector from pynwb import NWBHDF5IO from tqdm_publisher import TQDMProgressSubscriber @@ -1561,8 +1561,7 @@ def on_progress_update(message): def inspect_all(url, payload) -> dict: from pickle import PicklingError - from nwbinspector.inspector_tools import format_messages, get_report_header - from nwbinspector.nwbinspector import InspectorOutputJSONEncoder + import nwbinspector try: messages = _inspect_all(url, payload)