This code is a python wrapper around the cosmological hydrodynamical code SWIFT hosted at https://gitlab.cosma.dur.ac.uk/swift/swiftsim.
A few examples are given in test and the API is trying to follow the SWIFT API, therefore a developer of SWIFT should be able to quickly learn how to use it.
You can find a few examples in test and examples and a documentation in docs.
Install
=======
To install PySWIFT, you can run the following command: `python3 setup.py install --with-swift SWIFT_PATH --user`.
The setup script will read all your parameters in the config file of swift, therefore you need to reinstall PySWIFT with each configuration of SWIFT.
You may need to remove the build directory to recompile PySWIFT.
Adding a new structure
======================
In pyswiftsim/structure.py, a list of all SWIFT structure are described in python.
When adding a new structure, a new class should be added to this file using the following example:
```
class SwiftParams(SwiftStruct):
""" All object should inherit from SwiftStruct """