SWIFTGalaxy is a module that extends SWIFTSimIO tailored to analyses of particles belonging to individual simulated galaxies. It inherits from and extends the functionality of the SWIFTDataset
. It understands the content of halo catalogues (supported: Velociraptor, Caesar, SOAP) and therefore which particles belong to a galaxy or other group of particles, and its integrated properties. The particles occupy a coordinate frame that is enforced to be consistent, such that particles loaded on-the-fly will match e.g. rotations and translations of particles already in memory. Intuitive masking of particle datasets is also enabled. Finally, some utilities to make working in cylindrical and spherical coordinate systems more convenient are also provided.
Warning
In order to support use of SOAP halo catalogues this version (1.1.0) of SWIFTGalaxy depends on the load_fof_catalogues branch of SWIFTSimIO. This dependency will be automatically handled by pip
, but to use SOAP catalogues in SWIFTGalaxy you must install from github. One way to do this is pip install git+https://github.com/SWIFTSIM/swiftgalaxy.git
. PyPI does not allow depending on github repositories so SWIFTGalaxy v1.1.0 will not be released on PyPI (and therefore cannot be installed with pip install swiftgalaxy
) until the load_fof_catalogues branch is merged into SWIFTSimIO and itself released on PyPI. You can use the PyPI versions of both SWIFTGalaxy and SWIFTSimIO (these are compatible) but in this case SOAP halo catalogues are not supported.
Note
swiftgalaxy
will be listed on the ASCL after the first publication using it. Citation details will then be given here. In the meantime, if you publish a paper using swiftgalaxy
, please get in touch at submission time!
Please also consider the citations requested for SWIFTSimIO.