SMPy is a Python-based toolkit designed for astrophysicists and cosmologists, facilitating the construction of convergence maps from shear data. This tool leverages the power of Python to provide an accessible and efficient way to analyze gravitational lensing effects, particularly focusing on the mapping of dark matter distribution in galaxy clusters.
Prerequisites: Ensure you have Python 3.x installed on your system. SMPy also requires numpy
, scipy
, pandas
, astropy
, and matplotlib
for numerical computations and visualizations.
Clone the Repository: Clone the SMPy repository to your local machine using git:
git clone https://github.com/GeorgeVassilakis/SMPy.git
Install the Package: Install SMPy using setup.py:
pip install .
Edit your example_config.yaml
configuration file
Run the runner.py script: Use the -c or -config flag to pass your .yaml file
python runner.py -c /path/to/example_config.yaml
Import the run module:
from smpy import run
Edit the example_config.yaml
configuration file
Define config path and run:
config_path = '/path/to/SMPy/smpy/configs/example_config.yaml'
run.run(config_path)