-
Notifications
You must be signed in to change notification settings - Fork 37
/
__init__.py
54 lines (44 loc) · 1.37 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# This file handles the way opengate is imported.
import colored
import threading
print(
colored.stylize(
f"Importing opengate (thread " f"{threading.get_native_id()}) ... ",
colored.fg("dark_gray"),
),
end="",
flush=True,
)
# the following modules are imported respecting the package structure
# they will be available via
# `import opengate`
# `opengate.xxx.yyy`
# Modules that are mainly for internal use, such as runtiming.py or uisessions.py
# are not automatically imported. If a user needs them, s/he must import
# them specifically, e.g. `import opengate.uisessions`
# subpackages
import opengate.sources
import opengate.geometry
import opengate.geometry.materials
import opengate.geometry.solids
import opengate.geometry.utility
import opengate.geometry.volumes
import opengate.actors
import opengate.contrib
# modules directly under /opengate/
import opengate.managers
import opengate.utility
import opengate.logger
import opengate.exception
import opengate.runtiming
import opengate.definitions
import opengate.userhooks
import opengate.image
import opengate.physics
import opengate.base
import opengate.engines
# These objects are imported at the top level of the package
# because users will frequently use them
from opengate.managers import Simulation
from opengate.utility import g4_units
print(colored.stylize("done", colored.fg("dark_gray")))