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