forked from GalacticDynamics-Oxford/Agama
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.py
11 lines (11 loc) · 795 Bytes
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
from .agama import * # import everything from the C++ library
from .agama import __version__, __doc__ # these two are not automatically imported
from .py.pygama import * # and everything from the Python extension submodule
from .py import schwarzlib # also import this submodule, but do not merge it into the main namespace
try:
from .py import agamacolormaps # initialize submodule and register some custom colormaps for matplotlib
del agamacolormaps # remove submodule from the namespace
except: pass # no error in case this fails
del agama # remove the C++ library from the root namespace
del py.pygama # and the same for the Python extension submodule
del py.schwarzlib