Skip to content

Commit

Permalink
update nwbinspector imports
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD authored Aug 23, 2024
1 parent cb5f0c0 commit 47c161b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/pyflask/manageNeuroconv/manage_neuroconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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):
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 47c161b

Please sign in to comment.