Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 authored Mar 6, 2024
1 parent f3fa38b commit ebb74ec
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/pynwb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,15 @@ def export(self, **kwargs):
from hdmf.data_utils import DataChunkIterator # noqa: F401,E402
from hdmf.backends.hdf5 import H5DataIO # noqa: F401,E402

from . import _version # noqa: F401,E402
__version__ = _version.get_versions()['version']
try:
# see https://effigies.gitlab.io/posts/python-packaging-2023/
from ._version import __version__
except ImportError: # pragma: no cover
# this is a relatively slower method for getting the version string
from importlib.metadata import version # noqa: E402

__version__ = version("pynwb")
del version

from ._due import due, BibTeX # noqa: E402
due.cite(
Expand Down

0 comments on commit ebb74ec

Please sign in to comment.