AnalysisToolbox
A set of Python tools for statistically analyzing data. This includes aspects of lattice QCD applications related to QCD phenomenology.
Install / Use
/learn @LatticeQCD/AnalysisToolboxREADME
AnalysisToolbox
The AnalysisToolbox set of Python tools for statistically analyzing correlated data. This includes aspects of lattice QCD applications related to QCD phenomenology.
We advertise briefly here some features of the AnalysisToolbox:
- General mathematics: Numerical differentiation, convenience wrappers for SciPy numerical integration and solving IVPs.
- General statistics: Jackknife, bootstrap, Gaussian bootstrap, error propagation, various information criteria, Bayesian model averaging, estimation of integrated autocorrelation time, error ellipses, Kolmogorov-Smirnov tests, and curve fitting with and without Bayesian priors. We stress that our math and statistics methods are generally useful, independent of physics contexts.
- General physics: Unit conversions, critical exponents and temperatures for various universality classes, physical constants, framework for spin models.
- QCD physics: Hadron resonance gas model, ideal fermion gas, HotQCD equation of state, and the QCD beta function. These methods are useful for QCD phenomenology, independent of lattice contexts.
- Lattice QCD: Continuum-limit extrapolation, SU(3) gauge fields, reading in gauge fields, and the static quark-antiquark potential. These methods rather target lattice QCD.
In any of the above cases, after installing the AnalysisToolbox, you can easily incorporate its features in your own Python scripts like any other library. Some simple examples are in the tutorial. A realistic use-case that weaves the AnalysisToolbox into a lattice QCD workflow can be found in this data publication. More information can be found in the documentation.
To use the AnalysisToolbox, make sure you have Python 3.9+. You should then be able to conveniently install it using
pip install latqcdtools
If you would like alternative ways to set up the AnalysisToolbox, please see the documentation.
Besides this basic install, there is a latexify() command you can use when plotting to
make your plot font match typical LaTeX documents. In order for this command to work, you need
to have LaTeX installed on your system. The easiest is to install texlive-full, but
if that is not possible, it may be enough to install texlive-mathscience in addition
to the basic stuff.
Getting started and documentation
To acquaint yourself with the AnalysisToolbox, you can start by
having a look at the tutorial,
which walks through some scripts in the examples directory.
You can also look at some of the scripts in the applications and testing directories.
To learn about the code in more detail, especially learning how to contribute, please have a look the documentation.
Getting help and bug reports
Open an issue, if...
- you have troubles running the code.
- you have questions on how to implement your own routine.
- you have found a bug.
- you have a feature request.
If none of the above cases apply, you may also send an email to clarke(dot)davida(at)gmail(dot)com.
Contributors
D. A. Clarke, L. Altenkort, H. Dick, K. Ebira, J. Goswami, O. Kaczmarek, G. Liu, L. Mazur, H. Sandmeyer, M. Sarkar, C. Schmidt, H.-T. Shu, T. Ueding
Crediting AnalysisToolbox
If you used this code in your research, your teaching, or found it generally useful, please help us out by citing
@inproceedings{Altenkort:2023xxi,
author = "Altenkort, Luis and Clarke, David Anthony and Goswami, Jishnu and Sandmeyer, Hauke",
title = "{Streamlined data analysis in Python}",
eprint = "2308.06652",
archivePrefix = "arXiv",
primaryClass = "hep-lat",
month = "8",
year = "2023"
}
Acknowledgments
- We acknowledge support by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) through the CRC-TR 211 'Strong-interaction matter under extreme conditions'– project number 315477589 – TRR 211.
- This work was partly performed in the framework of the PUNCH4NFDI consortium supported by DFG fund "NFDI 39/1", Proj.No. 460248186 (PUNCH4NFDI).
- DAC acknowledges helpful discussions with C. DeTar, X.-Y. Jin, S. Lahert, G. P. LePage, and C. Rohde.
Related Skills
claude-opus-4-5-migration
107.8kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
model-usage
347.0kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
TrendRadar
50.8k⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。
mcp-for-beginners
15.8kThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.
