Skip to main content

GooFit fitting package

Project description

GooFit is a highly parallel fitting framework originally designed for High Energy Physics.

Installation basics

This package can be installed with pip, but uses SciKit-Build, and is build, fully optimized, on your system. Because of this, there are a few caveats when running a pip install. Make sure you have SciKit-Build (pip install scikit-build) before you attempt an install. Also, if you don’t have a recent version of CMake (3.8 or better recommended), also run pip install cmake. When you build, you should also use pip’s -v flag, so that you can see it build (and observe the configuration options). Otherwise, you might wait a very long time without output (especially if CUDA was found).

Installation: pip

Using pip 10+:

pip install -v goofit

Using pip < 10:

pip install scikit-build
pip install -v goofit

If you want to send commands to CMake through PIP, you will need to pass each option through, starting with a -- option. Pip will try to reuse the built version if you do not pass options, but will rebuild if you pass options. For example, if you are on Anaconda and realize that GooFit and Anaconda are using different OpenMP libraries:

pip install -v goofit --install-option="--" --install-option="-DGOOFIT_DEVICE=CPP"

Installation: local

If you want to add PDFs to GooFit, or use GooFit pacakges, you should be working in a local directory using git. In the following example, I’m assuming you’ve set up SSH keys with GitHub; you can use https instead if you perfer by changing the URL to https://github.com/GooFit/GooFit.git:

git clone --recursive git@github.com:GooFit/GooFit.git
cd goofit

Pipenv

You can set up a quick environment using pipenv:

pipenv install --dev

Then activate that environment:

pipenv shell

Local pip

The normal install here works, though as usual you should include verbose output:

pip install -v .

You can pass through options to the build command, for example:

pip install -v . --install-options="--" --install-options="-DGOOFIT_PACKAGES=OFF"

Building a source package from git

For developers only:

To make a source package, start with a clean (such as new) git GooFit package with all submodules checked out:

git clone --branch=master --recursive --depth=10 git@github.com:GooFit/GooFit.git
cd goofit
python setup.py sdist
python -m twine upload dist/*

To make a binary package, use instead:

python setup.py bdist_wheel -- -DGOOFIT_OPTI="-march=core2"

Project details


Download files

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

Source Distribution

goofit-2.2.1.tar.gz (8.2 MB view details)

Uploaded Source

File details

Details for the file goofit-2.2.1.tar.gz.

File metadata

  • Download URL: goofit-2.2.1.tar.gz
  • Upload date:
  • Size: 8.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0

File hashes

Hashes for goofit-2.2.1.tar.gz
Algorithm Hash digest
SHA256 9283b180f189f0d08c3f4c6c3ed95ffccf0986336891334e3f8acbaf624166d1
MD5 1cf027ebbff7e9624a317eb9dae25071
BLAKE2b-256 eef17b689dbcde5255772d9df7c1acbc094caaa2d92546429b023ab8bf84818d

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