Installation¶
Overview¶
MapLines is a Python package designed to perform emission-line fitting in astronomical spectra and integral-field spectroscopy (IFS) data. It supports parametric modeling of emission lines, Bayesian inference with MCMC, and spatially resolved analysis of data cubes.
Requirements¶
MapLines relies on the scientific Python ecosystem and requires:
Python >= 3.9
numpy
scipy
matplotlib
astropy
emcee
pyyaml
corner
Optional packages used in visualization include:
cmasher
astropy.wcs
astropy.io.fits
Install from source¶
Clone the repository and install the package in editable mode:
git clone https://github.com/USERNAME/MapLines.git
cd MapLines
pip install -e .
Editable installation allows modifications to the source code without reinstalling the package.
Install dependencies manually¶
If needed, dependencies can be installed individually:
pip install numpy scipy matplotlib astropy emcee pyyaml corner
Building the documentation¶
To build the documentation locally:
pip install sphinx myst-parser sphinx-rtd-theme
Then run:
cd docs
make html
The generated documentation will appear in:
docs/build/html/index.html