-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Will Graham <[email protected]>
- Loading branch information
1 parent
e68e1a3
commit d96b80d
Showing
1 changed file
with
4 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
from importlib.metadata import PackageNotFoundError, version | ||
from importlib.metadata import PackageNotFoundError, metadata | ||
|
||
try: | ||
__version__ = version("bg-atlasapi") | ||
del version | ||
__version__ = metadata("bg-atlasapi")["Version"] | ||
__author__ = metadata("bg-atlasapi")["Author"] | ||
del metadata | ||
except PackageNotFoundError: | ||
# package is not installed | ||
pass | ||
|
||
__author__ = "BrainGlobe Developers" | ||
|
||
|
||
from bg_atlasapi.bg_atlas import BrainGlobeAtlas | ||
from bg_atlasapi.list_atlases import show_atlases |