Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog_entries/447.improvement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Enabled auto-import of checks defined from a set of known extensions, beginning with `ndx_multichannel_volume`.
9 changes: 9 additions & 0 deletions src/nwbinspector/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,12 @@
from .checks.icephys import *

default_check_registry = {check.__name__: check for check in available_checks}

# Automatically import from a set of known extensions that might be installed
import importlib

KNOWN_EXTENSIONS = ["ndx_multichannel_volume"]
for extension_candidate in KNOWN_EXTENSIONS:
if importlib.util.find_spec(name=extension_candidate) is not None:
importlib.import_module(name=extension_candidate)
# Any checks exposed to the extension __init__ will now be registered