Shamrock
2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
pylib
shamrock
tree
__init__.py
1
"""
2
Shamrock tree library.
3
"""
4
5
try
:
6
# try to import from the global namespace (works if embedded python interpreter is used)
7
from
pyshamrock.tree
import
*
8
except
ImportError:
9
# then it is a library mode, we import from the local namespace
10
from
..
pyshamrock.tree
import
*
11
12
# explicitly re-export public API
13
__all__ = [name
for
name
in
globals()
if
not
name.startswith(
"_"
)]
14
15
# Sphinx uses obj.__module__ to decide where something belongs.
16
for
name
in
__all__:
17
try
:
18
globals()[name].__module__ = __name__
19
except
(AttributeError, TypeError):
20
# Some C-extension objects or builtins don't allow rebinding __module__
21
pass
22
23
# print(f"shamrock.tree.__all__: {__all__}")
tree
Generated on Wed May 13 2026 13:21:48 for Shamrock by
1.9.8