Skip to content

Commit

Permalink
add failure mode to import hacking
Browse files Browse the repository at this point in the history
  • Loading branch information
h-mayorquin committed Nov 15, 2024
1 parent aecf92a commit 15b952e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

from .nvt_utils import read_data, read_header
from ....basetemporalalignmentinterface import BaseTemporalAlignmentInterface
from ....utils import DeepDict, _NWBMetaDataEncoder, get_base_schema
from ....utils import DeepDict, get_base_schema
from ....utils.json_schema import _NWBMetaDataEncoder
from ....utils.path import infer_path


Expand Down
2 changes: 1 addition & 1 deletion src/neuroconv/tools/testing/data_interface_mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
configure_backend,
get_default_backend_configuration,
)
from neuroconv.utils import _NWBMetaDataEncoder
from neuroconv.utils.json_schema import _NWBMetaDataEncoder


class DataInterfaceTestMixin:
Expand Down
4 changes: 4 additions & 0 deletions src/neuroconv/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,7 @@ def __getattr__(name):
warn(message=message, category=DeprecationWarning, stacklevel=2)

return Optional[DirectoryPath]

if name in globals():
return globals()[name]
raise ImportError(f"cannot import name '{name}' from '{__name__}'")

0 comments on commit 15b952e

Please sign in to comment.