Error propagation and statistical analysis for Markov chain Monte Carlo simulations in lattice QCD and statistical mechanics using autograd
Find a file
Fabian Joswig b28c2f0b6f
[Fix] Migrate to odrpack because of scipy.odr deprecation (#279)
* [Fix] Migrate to odrpack because of scipy.odr deprecation in recent
release

* [Fix] Fix behaviour for rank deficient fits. Add test

* [Fix] Relax test_merge_obs tolerance to machine epsilon and update ODR docstring to reference odrpack

* [ci] Re-add -Werror to pytest workflow

* [Fix] Handle platform-dependent rank-deficient warning in ODR tests

* [Fix] Improve rank-deficient detection and bump odrpack to >=0.5

Fix incorrect ODRPACK95 info code parsing: rank deficiency is encoded
in the tens digit (info // 10 % 10), not the hundreds digit. Add
irank and inv_condnum to the warning message for diagnostics.
2026-04-19 19:50:36 +02:00
.github [Fix] Migrate to odrpack because of scipy.odr deprecation (#279) 2026-04-19 19:50:36 +02:00
examples Fixed index in GEVP example (#261) 2025-04-22 10:26:20 +02:00
pyerrors [Fix] Migrate to odrpack because of scipy.odr deprecation (#279) 2026-04-19 19:50:36 +02:00
tests [Fix] Migrate to odrpack because of scipy.odr deprecation (#279) 2026-04-19 19:50:36 +02:00
.gitignore build: .hypothesis added to gitignore. 2023-03-17 17:56:40 +00:00
CHANGELOG.md [release] Bump version to 2.17, append CHANGELOG 2026-03-29 20:48:23 +02:00
CITATION.cff docs: citation file corrected. 2023-04-29 10:59:45 +01:00
conftest.py tests: conftest.py added 2022-01-20 13:56:56 +00:00
CONTRIBUTING.md docs: Contributing guidelines clarified. 2023-07-10 16:11:25 +01:00
LICENSE Initial public release 2020-10-13 16:53:00 +02:00
pyproject.toml [ci] Add ruff workflow (#250) 2024-12-24 17:52:08 +01:00
README.md [chore] Remove support for python 3.9 and bump python versions in runners (#273) 2025-10-19 12:59:20 +02:00
setup.py [Fix] Migrate to odrpack because of scipy.odr deprecation (#279) 2026-04-19 19:50:36 +02:00

License: MIT arXiv DOI

pyerrors

pyerrors is a python framework for error computation and propagation of Markov chain Monte Carlo data from lattice field theory and statistical mechanics simulations.

Installation

Install the most recent release using pip and pypi:

python -m pip install pyerrors     # Fresh install
python -m pip install -U pyerrors  # Update

Contributing

We appreciate all contributions to the code, the documentation and the examples. If you want to get involved please have a look at our contribution guideline.

Citing pyerrors

If you use pyerrors for research that leads to a publication we suggest citing the following papers:

  • Fabian Joswig, Simon Kuberski, Justus T. Kuhlmann, Jan Neuendorf, pyerrors: a python framework for error analysis of Monte Carlo data. Comput.Phys.Commun. 288 (2023) 108750.
  • Ulli Wolff, Monte Carlo errors with less errors. Comput.Phys.Commun. 156 (2004) 143-153, Comput.Phys.Commun. 176 (2007) 383 (erratum).
  • Alberto Ramos, Automatic differentiation for error analysis of Monte Carlo data. Comput.Phys.Commun. 238 (2019) 19-35.
  • Stefan Schaefer, Rainer Sommer, Francesco Virotta, Critical slowing down and error analysis in lattice QCD simulations. Nucl.Phys.B 845 (2011) 93-119.