swiftgalaxy 2.3.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- swiftgalaxy/__init__.py +32 -0
- swiftgalaxy/__version__.py +5 -0
- swiftgalaxy/demo_data.py +3223 -0
- swiftgalaxy/halo_catalogues.py +2323 -0
- swiftgalaxy/iterator.py +692 -0
- swiftgalaxy/json/caesar_unit_registry.json +141 -0
- swiftgalaxy/masks.py +303 -0
- swiftgalaxy/reader.py +2388 -0
- swiftgalaxy-2.3.1.dist-info/METADATA +249 -0
- swiftgalaxy-2.3.1.dist-info/RECORD +13 -0
- swiftgalaxy-2.3.1.dist-info/WHEEL +5 -0
- swiftgalaxy-2.3.1.dist-info/licenses/LICENSE.md +674 -0
- swiftgalaxy-2.3.1.dist-info/top_level.txt +1 -0
swiftgalaxy/__init__.py
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Extend SWIFTSimIO to analyse individual galaxies.
|
|
3
|
+
|
|
4
|
+
SWIFTGalaxy is a module that extends SWIFTSimIO tailored to analyses of particles
|
|
5
|
+
belonging to individual simulated galaxies. It inherits from and extends the functionality
|
|
6
|
+
of the SWIFTDataset. It understands the content of halo catalogues (supported: SOAP,
|
|
7
|
+
Velociraptor, Caesar) and therefore which particles belong to a galaxy or other group of
|
|
8
|
+
particles, and its integrated properties. The particles occupy a coordinate frame that is
|
|
9
|
+
enforced to be consistent, such that particles loaded on-the-fly will match e.g. rotations
|
|
10
|
+
and translations of particles already in memory. Intuitive masking of particle datasets is
|
|
11
|
+
also enabled. Finally, some utilities to make working in cylindrical and spherical
|
|
12
|
+
coordinate systems more convenient are also provided.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
from .reader import SWIFTGalaxy
|
|
16
|
+
from .iterator import SWIFTGalaxies
|
|
17
|
+
from .halo_catalogues import SOAP, Velociraptor, Caesar, Standalone
|
|
18
|
+
from .masks import MaskCollection
|
|
19
|
+
from .__version__ import __version__
|
|
20
|
+
|
|
21
|
+
__all__ = [
|
|
22
|
+
"SWIFTGalaxy",
|
|
23
|
+
"SWIFTGalaxies",
|
|
24
|
+
"SOAP",
|
|
25
|
+
"Velociraptor",
|
|
26
|
+
"Caesar",
|
|
27
|
+
"Standalone",
|
|
28
|
+
"MaskCollection",
|
|
29
|
+
"__version__",
|
|
30
|
+
]
|
|
31
|
+
|
|
32
|
+
name = "swiftgalaxy"
|