User Tools

Site Tools


tools:mfit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tools:mfit [2026/08/31 14:52]
cjoblin [cosmicPAHmfit]
tools:mfit [2026/08/31 18:54] (current)
cjoblin created
Line 1: Line 1:
- 
 ===== cosmicPAHmfit ===== ===== cosmicPAHmfit =====
- 
-**version** : 1.0 
- 
- 
- 
 **Authors** : Louan de Bentzmann (CNRS, IRAP), Karine Demyk (CNRS, IRAP), Axel Pérignon (CNRS, IRAP), Vincent Marty (CNRS, IRAP), Jean-Michel Glorian (CNRS, IRAP), Christine Joblin (CNRS, IRAP) **Authors** : Louan de Bentzmann (CNRS, IRAP), Karine Demyk (CNRS, IRAP), Axel Pérignon (CNRS, IRAP), Vincent Marty (CNRS, IRAP), Jean-Michel Glorian (CNRS, IRAP), Christine Joblin (CNRS, IRAP)
- +**Licence** : [[https://​gitlab.in2p3.fr/​ovgso/​cosmic-pah/​cosmic-pah-mfit/​-/​blob/​1.1/LICENCE|GPLv3]] 
- +==== Description ====
- +
-**Licence** : [GPLv3](https://​gitlab.in2p3.fr/​ovgso/​cosmic-pah/​cosmic-pah-mfit/​-/​blob/​main/LICENSE) +
- +
- +
-====  Description ==== +
 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 the spectral feature of interest as well as the number of components to be included in the fit. For each component, it provides the evolution of the position, width (FWHM) and integrated intensity as a function of temperature. 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 the spectral feature of interest as well as the number of components to be included in the fit. For each component, it provides the evolution of the position, width (FWHM) and integrated intensity as a function of temperature.
- +User manual is available through [[https://​gitlab.in2p3.fr/​ovgso/​cosmic-pah/​cosmic-pah-mfit/​-/​wikis/​uploads/​e15e6afc169937235e6060f1bdc3e518/​Manuel_d_utilisation_CosmicPAH-1.pdf|User manuel]] 
-User manual is available through [User manuel](https://​gitlab.in2p3.fr/​ovgso/​cosmic-pah/​cosmic-pah-mfit/​-/​wikis/​uploads/​e15e6afc169937235e6060f1bdc3e518/​Manuel_d_utilisation_CosmicPAH-1.pdf) +Full code is available from [[https://​gitlab.in2p3.fr/​ovgso/​cosmic-pah/​cosmic-pah-mfit/​cosmicPAHmfit/​|gitlab]] 
- +==== Citation ==== 
-Full code is available from [gitlab](https://​gitlab.in2p3.fr/​ovgso/​cosmic-pah/​cosmic-pah-mfit) +Use the following document to site this application:​ 
- +[[https://​gitlab.in2p3.fr/​ovgso/​cosmic-pah/​cosmic-pah-mfit/​-/​blob/​1.1/​CITATION.cff|How to cite cosmicPAHmfit]] 
- +==== Installation ==== 
-====  Citation ====  +It is recommended ​to use a python ​virtual ​environnement. For example by using [[https://​github.com/​pyenv/pyenv|pyenv]] 
- +The python ​version ​must be 3.12 or higher. 3.12 to 3.15 are tested and work correctly.  
-[How to cite cosmicPAHmfit](https://​gitlab.in2p3.fr/​ovgso/​cosmic-pah/​cosmic-pah-mfit/​-/​blob/​main/​CITATION.cff) +Within the virtual environnement use the following command to install the application: 
- +  pip install cosmicPAHmfit 
- +And either one to run the application:​ 
-==== Installation ====  +  ​python3 -m cosmicPAHmfit 
- +Or 
-``` +  ​cosmicPAHmfit 
-pip install cosmicPAHmfit +The installation is detailed in the [[https://gitlab.in2p3.fr/ovgso/cosmic-pah/cosmic-pah-mfit/cosmicPAHmfit/-blob/1.1/README.md|README.md]]
-python3 cosmicPAHmfit +
- +
-``` +
- +
--It is recommanded ​to use a virtual ​environment **copy/paste** The pyenv version ​can be above 3.12 if preferred. (On **windows** pyenv is not working, proceed to installation of a compatible python (3.12-3.15). A virtual environment is not mandatory.) +
- +
-``` +
-pyenv install ​3.12.3 +
-pyenv virtualenv 3.12.3 venv +
-pyenv activate venv +
-``` +
- +
-If the previous commands don't work. Install pyenv: +
- +
--On **Linux** To create a **pyenv virtualenv** for running an other python in a venv run the following blocks (**copy/​paste**);​ +
- +
-``` +
-curl https://pyenv.run | bash +
-echo '​export PYENV_ROOT="​$HOME/​.pyenv"'​ >> ~/.bashrc +
-echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="​$PYENV_ROOT/​bin:​$PATH"'​ >> ~/.bashrc +
-echo 'eval "​$(pyenv init -)"'​ >> ~/.bashrc +
-exec "​$SHELL"​ +
-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 "​$(pyenv virtualenv-init -)"'​ >> ~/.bashrc +
- +
-``` +
- +
--On **MAC** if the previous install doesn'​t work **copy/paste** the following:​ +
- +
-``` +
-brew install pyenv-virtualenv +
-export PYENV_ROOT="​$HOME/.pyenv"​ +
-command -v pyenv >/dev/​null ​|| export PATH="​$PYENV_ROOT/​bin:​$PATH"​ +
-eval "​$(pyenv init --path)"​ +
-eval "​$(pyenv init -)" +
- +
-``` +
- +
-====  Usage  ====  +
- +
-**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, the pyenv venv is running. To run the application you can use directly:​** +
- +
-``` +
-python3 cosmicPAHmfit +
- +
-``` +
tools/mfit.1788187950.txt.gz · Last modified: 2026/08/31 14:52 by cjoblin