Update bambi dependency to 0.16 and added support for Python 3.13#866
Update bambi dependency to 0.16 and added support for Python 3.13#866digicosmos86 merged 13 commits intomainfrom
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
There was a problem hiding this comment.
Pull request overview
This PR updates HSSM to support bambi 0.16 and adds Python 3.13 compatibility. The main changes involve migrating from old sampler naming conventions (e.g., "mcmc", "nuts_numpyro", "nuts_blackjax") to the new bambi 0.16 API (e.g., "pymc", "numpyro", "blackjax"). The PR includes backward compatibility support with deprecation warnings for old sampler names.
Key Changes:
- Updated bambi dependency constraint from 0.15.x to 0.16.x and PyMC to 5.26.0+
- Renamed sampler parameters throughout codebase to match bambi 0.16 API (e.g., "nuts_numpyro" → "numpyro", "mcmc" → "pymc")
- Added Python 3.13 support across project configuration and CI workflows
Reviewed changes
Copilot reviewed 31 out of 31 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/hssm/hssm.py | Core implementation changes including sampler name mapping, deprecation warnings, and updated API logic |
| pyproject.toml | Updated dependencies (bambi 0.16.x, pymc 5.26.0+) and added Python 3.13 classifier |
| tests/*.py | Updated all test files to use new sampler names (pymc, numpyro instead of mcmc, nuts_numpyro) |
| docs/tutorials/*.ipynb | Updated all tutorial notebooks with new sampler names and execution counts reset to null |
| .github/workflows/*.yml | Added Python 3.13 to test matrix and updated default Python version to 3.13 |
| .github/setup-env*/action.yml | Updated GitHub Actions versions (setup-python@v6, checkout@v6, setup-uv@v7) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
cpaniaguam
left a comment
There was a problem hiding this comment.
lgtm. Left a couple of observations.
Co-authored-by: Carlos Paniagua <cpaniaguam@gmail.com>
The following changes were made in this PR:
model.sample()method to be consistent with theinference_methodargument ofbmb.Model.fit()method