Skip to main content

cosmicPAHmfit

version : 1.1

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 : GPLv3

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. User manual is available through User manuel Full code is available from gitlab

Citation

How to cite cosmicPAHmfit

Installation

pip install cosmicPAHmfit
python3 -m 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 lines doesn'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 -m 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 -m cosmicPAHmfit

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cosmicpahmfit-1.1.1.tar.gz (517.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cosmicpahmfit-1.1.1-py3-none-any.whl (620.6 kB view details)

Uploaded Python 3

File details

Details for the file cosmicpahmfit-1.1.1.tar.gz.

File metadata

  • Download URL: cosmicpahmfit-1.1.1.tar.gz
  • Upload date:
  • Size: 517.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for cosmicpahmfit-1.1.1.tar.gz
Algorithm Hash digest
SHA256 896f1e089cd34ca8afdb511e027d08c5778038463bfe1f0facddce466d9a1365
MD5 c92f7bdcc95f45fa8d75b6574b31216a
BLAKE2b-256 0e91f4fe870c7b4338e57c87c66e3eff55a17126553fdec01cefa9873a52478d

See more details on using hashes here.

File details

Details for the file cosmicpahmfit-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: cosmicpahmfit-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 620.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for cosmicpahmfit-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 20067b1d8f94873480a08b3f2a2c7e7d30ffea3c464e8e911d8c7a779d98679e
MD5 7227e5e8c54c3244f5f3b415a6a7ebaa
BLAKE2b-256 48e3911ed415e5c4c100a95b81b14f2c2c0dad2178a1e98c6799704e29cdc2c9

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.2

2 files

This release

1.1.1 This release

2 files

1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page