Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -20,7 +20,7 @@ jobs:
- name: Install dependencies
run: |
pip install -e .
pip install flake8 pytest pytest-cov codecov wheel
pip install flake8 pytest pytest-cov codecov build
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand All @@ -29,18 +29,18 @@ jobs:
flake8 . --count --exit-zero --statistics
- name: Test with pytest
run: |
pytest --cov=./calibr8 --cov-append --cov-report xml --cov-report term-missing calibr8
pytest -v --cov=./calibr8 --cov-append --cov-report xml --cov-report term-missing calibr8
- name: Install and test with PyMC v5
run: |
pip install "pymc>=5.0.0"
pytest --cov=./calibr8 --cov-append --cov-report xml --cov-report term-missing calibr8
pytest -v --cov=./calibr8 --cov-append --cov-report xml --cov-report term-missing calibr8
- name: Upload coverage
uses: codecov/codecov-action@v6
with:
file: ./coverage.xml
- name: Test Wheel install and import
run: |
python setup.py bdist_wheel
python -m build
cd dist
pip install calibr8*.whl
python -c "import calibr8; print(calibr8.__version__)"
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
python-version: "3.13"
- name: Install dependencies
run: |
pip install -e .
pip install flake8 pytest pytest-cov twine wheel
pip install flake8 pytest pytest-cov twine build
- name: Test with pytest
run: |
pytest --cov=./calibr8 --cov-append --cov-report xml --cov-report term-missing calibr8
Expand All @@ -30,7 +30,7 @@ jobs:
pytest --cov=./calibr8 --cov-append --cov-report xml --cov-report term-missing calibr8
- name: Build package
run: |
python setup.py sdist bdist_wheel
python -m build
- name: Check version number match
run: |
echo "GITHUB_REF: ${GITHUB_REF}"
Expand Down
3 changes: 1 addition & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
os: ubuntu-24.04
tools:
python: "3.12"

Expand All @@ -19,6 +19,5 @@ sphinx:
python:
install:
- requirements: docs/requirements.txt
- requirements: requirements.txt
- method: pip
path: .
3 changes: 2 additions & 1 deletion calibr8/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"""

import datetime
import importlib.metadata
import inspect
import json
import logging
Expand All @@ -20,7 +21,7 @@
from . import utils
from .utils import DistributionType, pm

__version__ = "7.2.0"
__version__ = importlib.metadata.version(__package__ or __name__)
_log = logging.getLogger("calibr8")


Expand Down
83 changes: 42 additions & 41 deletions notebooks/Advanced_Custom_Noise_Models.ipynb

Large diffs are not rendered by default.

378 changes: 251 additions & 127 deletions notebooks/Advanced_Hierarchical_Calibration.ipynb

Large diffs are not rendered by default.

258 changes: 91 additions & 167 deletions notebooks/Advanced_In-depth_Model_Fitting.ipynb

Large diffs are not rendered by default.

Loading
Loading