/
__init__.py
75 lines (59 loc) · 1.73 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
"""
Trident is a python-based package extending yt for generating synthetic
observations of hydrodynamical datasets.
Please visit the Trident and yt websites for more information:
http://trident-project.org
http://yt-project.org
"""
#-----------------------------------------------------------------------------
# Copyright (c) 2016, Trident Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
#-----------------------------------------------------------------------------
__version__ = "1.2.3"
# Must run import_check() before anything else is imported to avoid
# astropy error when importing trident in trident package directory
from trident.utilities import import_check
import_check()
from trident.config import \
parse_config, \
create_config, \
trident, \
trident_path, \
verify
from trident.ion_balance import \
add_ion_fields, \
add_ion_fraction_field, \
add_ion_number_density_field, \
add_ion_density_field, \
add_ion_mass_field, \
solar_abundance, \
atomic_mass
from trident.instrument import \
Instrument
from trident.line_database import \
LineDatabase, \
Line
from trident.lsf import \
LSF
from trident.plotting import \
plot_spectrum
from trident.spectrum_generator import \
SpectrumGenerator, \
valid_instruments, \
load_spectrum
from trident.utilities import \
make_onezone_dataset, \
make_onezone_ray
from trident.ray_generator import \
make_simple_ray, \
make_compound_ray
from trident.roman import \
to_roman, \
from_roman
from trident.light_ray import \
LightRay
# Making installation path global
path = trident_path()