Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Final scoping fix #487

Merged
merged 2 commits into from
Aug 20, 2024
Merged
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
4 changes: 2 additions & 2 deletions src/nwbinspector/tools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .dandi import get_s3_urls_and_dandi_paths
from .nwb import all_of_type, get_nwbfile_path_from_internal_object
from ._dandi import get_s3_urls_and_dandi_paths
from ._nwb import all_of_type, get_nwbfile_path_from_internal_object
from ._read_nwbfile import read_nwbfile

__all__ = [
Expand Down
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions src/nwbinspector/tools/dandi/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import warnings

message = (
"The submodule 'nwbinspector.tools.dandi' has been deprecated. "
"Please perform any imports directly from 'nwbinspector.tools' instead."
)

warnings.warn(message=message, category=DeprecationWarning, stacklevel=2)

# Still keep imports functional with warning for soft deprecation cycle
# TODO: remove after 9/15/2024
from .._dandi import *
12 changes: 12 additions & 0 deletions src/nwbinspector/tools/nwb/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import warnings

message = (
"The submodule 'nwbinspector.tools.nwb' has been deprecated. "
"Please perform any imports directly from 'nwbinspector.tools' instead."
)

warnings.warn(message=message, category=DeprecationWarning, stacklevel=2)

# Still keep imports functional with warning for soft deprecation cycle
# TODO: remove after 9/15/2024
from .._nwb import *
Loading