Please note that PyMSZ is still in developing mode.
- This package provides theoretical views of SZ y-map from both thermal and kinetic effects for hydrodynamical simulations. This package also uses the SZpack to generate observed SZ signals at any frequency from hydrodynamical simulations.
- It requires yt installed if you want to use yt to load and analysis the simulation data.
- current version beta
-
Summary of set up
This package includes SZPack v1.1.1 library. It requires gsl (with headers files) and swig installed in your system for building this library. It is very easy with
sudo apt-get install libgsl23 libgsl-dev swig python-dev
You may need manually link the libgsl.so.0 (sudo ln -s /usr/lib/x86_64-linux-gnu/libgsl.so.23.0.0 /usr/lib/x86_64-linux-gnu/libgsl.so.0
) to solve theImportError: libgsl.so.0: cannot open shared object file: No such file or directory
Note for python3: You may first need to install
python3-dev
. If you don't have the symbol link python to python3, go to the foldercd pymsz/SZpacklib/python/
and modify the 'Makefile' by replacing 'python' with 'python3'. Then go back to the pymsz foldercd ../../../
and runpython3 setup.py install --user
. -
Configuration
look at the wiki page for a simple test script. The functions inside this package are always documented.
-
Dependencies
numpy, scipy, astropy. SZpack requires gsl and swig
-
How to run tests
-
Deployment instructions
- Writing tests
- Code review
- Other guidelines
- Please report any issue to Weiguang Cui: cuiweiguang@gmail.com.
- Or report a bug through issues.
Please cite the relative papers when you use the code: for theoretical kinetic SZ effects, (please cite Baldi et al. 2018; for theoretical thermal SZ effects, (please cite Cui et al. 2018; for mock SZ-signals at any frequency, (please cite Chluba et al. 2012 & 2013)
- The loaded simulation data has a radius of 2 x set radius, because the data has to be projected in a cylinder. Thus, I make a cut in line of sight direction later before the calculation of theoretical y-map.
- The TK_model needs updates with the latest modifications. to be done.