tools:mfit
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tools:mfit [2026/08/31 18:53] – [Citation] cjoblin | tools:mfit [2026/08/31 18:54] (current) – created cjoblin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | + | ===== cosmicPAHmfit ===== | |
| - | + | **Authors** : Louan de Bentzmann | |
| - | + | **Licence** : [[https:// | |
| - | + | ==== Description ==== | |
| - | ==== Installation | + | CosmicPAHmfit is a python fitting tool. It performs a multi-component fit of the selected spectral feature using pseudo-Voigt functions (linear combination of a Gaussian curve and of a Lorentzian curve possibly modified by an asymmetry factor). It has a graphical interface to select |
| - | + | User manual is available through [[https://gitlab.in2p3.fr/ovgso/ | |
| - | ``` | + | Full code is available from [[https://gitlab.in2p3.fr/ |
| - | pip install cosmicPAHmfit | + | ==== Citation ==== |
| - | python3 cosmicPAHmfit | + | Use the following |
| - | + | [[https://gitlab.in2p3.fr/ovgso/cosmic-pah/cosmic-pah-mfit/-/ | |
| - | ``` | + | ==== Installation |
| - | + | It is recommended | |
| - | -It is recommanded to use a virtual environment | + | The python version must be 3.12 or higher. 3.12 to 3.15 are tested and work correctly. |
| - | + | Within | |
| - | ``` | + | pip install cosmicPAHmfit |
| - | pyenv install 3.12.3 | + | And either one to run the application: |
| - | pyenv virtualenv 3.12.3 venv | + | python3 |
| - | pyenv activate venv | + | Or |
| - | ``` | + | |
| - | + | The installation is detailed in the [[https:// | |
| - | If the previous commands don't work. Install pyenv: | + | |
| - | + | ||
| - | -On **Linux** To create | + | |
| - | + | ||
| - | ``` | + | |
| - | curl https://pyenv.run | bash | + | |
| - | echo ' | + | |
| - | echo ' | + | |
| - | echo 'eval " | + | |
| - | exec " | + | |
| - | sudo apt-get update; sudo apt-get install -y build-essential libssl-dev zlib1g-dev libbz2-dev \ | + | |
| - | libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \ | + | |
| - | xz-utils tk-dev libffi-dev liblzma-dev python3-openssl git | + | |
| - | echo 'eval " | + | |
| - | + | ||
| - | ``` | + | |
| - | + | ||
| - | -On **MAC** if the previous install doesn' | + | |
| - | + | ||
| - | ``` | + | |
| - | brew install pyenv-virtualenv | + | |
| - | export PYENV_ROOT=" | + | |
| - | command -v pyenv >/dev/null || export PATH=" | + | |
| - | eval " | + | |
| - | eval " | + | |
| - | + | ||
| - | ``` | + | |
| - | + | ||
| - | ==== | + | |
| - | + | ||
| - | **Run the following line** | + | |
| - | + | ||
| - | ``` | + | |
| - | pyenv activate venv; python3 cosmicPAHmfit | + | |
| - | + | ||
| - | ``` | + | |
| - | + | ||
| - | **to exit the pyenv venv you must use:** | + | |
| - | + | ||
| - | ``` | + | |
| - | pyenv deactivate | + | |
| - | + | ||
| - | ``` | + | |
| - | + | ||
| - | **If (venv) appears in the terminal, | + | |
| - | + | ||
| - | ``` | + | |
| - | python3 cosmicPAHmfit | + | |
| - | + | ||
| - | ``` | + | |
tools/mfit.1788202395.txt.gz · Last modified: (external edit)
