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 commands do not 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.2.tar.gz (517.1 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.2-py3-none-any.whl (620.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cosmicpahmfit-1.1.2.tar.gz
  • Upload date:
  • Size: 517.1 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.2.tar.gz
Algorithm Hash digest
SHA256 687d01bf09b2c71ba54fc6ea6a3fe7faed0651da52a5be532be51ec5bc7289fa
MD5 268debff7eab94c9bd0799870d80dee7
BLAKE2b-256 c4a41e574ea7715eb0aaa028255af4508dfee3b380536830ff2b97160076e463

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cosmicpahmfit-1.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e67e6b8772b1dc6eb0d35af3b4eaf5b45637875ad9f687da5b3b1db3a705af3f
MD5 44e38d4876515dcea4be6fac716379f8
BLAKE2b-256 e4a9b15aa0f49e640548a01a35f1d2a45558f272f8432238b8fbb3b4e4ec1bbb

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 files

1.1.1

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