Skip to main content

Voigt Profile Fitting in Python

Project description

Absorption line fitting implemented in Python.

If you use this software, please cite my paper on arXiv. Please let me know that you’re using VoigtFit by filling in this short form. This way I can keep you updated with critical updates.

Installation

Dependencies

Python version >3.6 (tested on 3.6 - 3.9 so far).

VoigtFit depends on matplotlib, numpy==1.20.3, scipy, h5py, astropy, lmfit, and numba==0.55.0. You can install these using your favorite Python package manager such as conda or pip.

If you encounter issues with the installation of h5py make sure that you have the HDF5 library installed. If you use Homebrew as a package manager you can try this fix [following stackoverflow]:

brew install hdf5
export HDF5_DIR="$(brew --prefix hdf5)"
pip install --no-binary=h5py h5py

If you encounter issues with the installation of numba (happened for me on Mac M1 architecture), try the following:

arch -arm64 brew install llvm@11
LLVM_CONFIG="/opt/homebrew/Cellar/llvm@11/11.1.0_4/bin/llvm-config" arch -arm64 pip install llvmlite

before installing numba.

Using pip

The easiest way to install the most recent stable version of VoigtFit is using pip:

pip install VoigtFit

If you encounter the following AttributeError when attempting to install via pip:

AttributeError: ‘NoneType’ object has no attribute ‘splitlines’

Try running pip with the --upgrade option:

pip install --upgrade VoigtFit

From source

Alternatively, you can get the latest version of the source by cloning the git repository:

git clone https://github.com/jkrogager/VoigtFit.git

Once you’ve downloaded the source, you can navigate into the root source directory and run:

python setup.py install

If you encounter any problems, do not hesitate to raise an issue here.

Further documentation and how to use it

Check out the documentation for instructions of installation and use.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

VoigtFit-3.13.9.1.tar.gz (2.5 MB view details)

Uploaded Source

Built Distribution

VoigtFit-3.13.9.1-py3-none-any.whl (2.5 MB view details)

Uploaded Python 3

File details

Details for the file VoigtFit-3.13.9.1.tar.gz.

File metadata

  • Download URL: VoigtFit-3.13.9.1.tar.gz
  • Upload date:
  • Size: 2.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for VoigtFit-3.13.9.1.tar.gz
Algorithm Hash digest
SHA256 dd30000acd8d1a7d96deb148194a28b8d09919bba89f1fab9ff3ce2c5e0aba3d
MD5 af9304b613c99ba6a5c656ae2ea34fa9
BLAKE2b-256 74cc06cc95cb6111ff9a33f9248e7974ce67d75270b3fea199f9e24bf7edffb9

See more details on using hashes here.

File details

Details for the file VoigtFit-3.13.9.1-py3-none-any.whl.

File metadata

  • Download URL: VoigtFit-3.13.9.1-py3-none-any.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for VoigtFit-3.13.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5265b3fc902cb86be43de9493d9fe0ae12879d83ce77f31e71814ab8aa6c8ebd
MD5 f630621f58b23db2f277c50cd1fbddc1
BLAKE2b-256 3e843a46a659aa8af3aadadf8300f48a2d3e6da69ab43529cf56629f682346e1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page