Skip to content

Commit

Permalink
Merge branch 'main' into first-examples
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelClerx authored Dec 18, 2024
2 parents 9ffbe94 + 5c646fd commit c6ce243
Show file tree
Hide file tree
Showing 31 changed files with 4,213 additions and 37 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/copyright-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
if: github.event.pull_request.draft == false

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.13'

- name: install pints
run: |
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/coverage-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ jobs:
if: github.event.pull_request.draft == false

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
# Testing on version that Stan currently supports
python-version: '3.12'

- name: install pints
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docs-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
if: github.event.pull_request.draft == false

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.13'

- name: install pints
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/notebook-interfaces-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.13'

# We use e.g. install pints[stan] to install dependencies for interfaces
# that have some code in pints/interfaces. Dependencies that are not used
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/notebook-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.13'

- name: install pints
run: |
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/style-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ jobs:
if: github.event.pull_request.draft == false

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.13'


- name: install pints
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/unit-test-os-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ jobs:
# Note: Ubuntu 22 is checked by other tests

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.13'

- name: install pints
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/unit-test-python-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ jobs:

strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
# Note: Latest version is tested by coverage test and os tests

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
Expand All @@ -40,7 +40,7 @@ jobs:
python -m pip install .
- name: install stan
if: matrix.python-version != '3.6'
if: ${{ matrix.python-version >= '3.10' && matrix.python-version < '3.13' }}
run : python -m pip install .[stan]

- name: run unit tests
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/upload-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'

Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ All notable changes to this project will be documented in this file.
## Unreleased

### Added
- [#1527](https://github.com/pints-team/pints/pull/1527) Added a `ComposedBoundaries` class that lets you compose multiple `Boundaries` classes into a higher dimensional one.
- [#1500](https://github.com/pints-team/pints/pull/1500) Added a `CensoredGaussianLogLikelihood` class that calculates the censored Gaussian log-likelihood.
- [#1505](https://github.com/pints-team/pints/pull/1505) Added notes to `ErrorMeasure` and `LogPDF` to say parameters must be real and continuous.
- [#1499](https://github.com/pints-team/pints/pull/1499) Added a log-uniform prior class.
### Changed
- [#1503](https://github.com/pints-team/pints/pull/1503) Stopped showing time units in controller logs, because the units change depending on the output type (see #1467).
- [#1699](https://github.com/pints-team/pints/pull/1699) PINTS is no longer tested on Python 3.7. Testing for Python 3.12 and 3.13 has been added.
### Deprecated
### Removed
### Fixed
Expand Down
3 changes: 3 additions & 0 deletions docs/source/boundaries.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@ implementation of the :class:`Boundaries` interface.
Overview:

- :class:`Boundaries`
- :class:`ComposedBoundaries`
- :class:`LogPDFBoundaries`
- :class:`RectangularBoundaries`


.. autoclass:: Boundaries

.. autoclass:: ComposedBoundaries

.. autoclass:: LogPDFBoundaries

.. autoclass:: RectangularBoundaries
3 changes: 3 additions & 0 deletions docs/source/log_likelihoods.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Overview:
- :class:`AR1LogLikelihood`
- :class:`ARMA11LogLikelihood`
- :class:`CauchyLogLikelihood`
- :class:`CensoredGaussianLogLikelihood`
- :class:`ConstantAndMultiplicativeGaussianLogLikelihood`
- :class:`GaussianIntegratedLogUniformLogLikelihood`
- :class:`GaussianIntegratedUniformLogLikelihood`
Expand All @@ -38,6 +39,8 @@ Overview:

.. autoclass:: CauchyLogLikelihood

.. autoclass:: CensoredGaussianLogLikelihood

.. autoclass:: ConstantAndMultiplicativeGaussianLogLikelihood

.. autoclass:: GaussianIntegratedLogUniformLogLikelihood
Expand Down
1 change: 1 addition & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@ relevant code.

## Miscellaneous
- [The example shown on the landing page](./sampling/readme-example.ipynb)
- [Rt estimation Renewal Equation model](./miscellaneous/model-rt-estimation-renewal-equation.ipynb)
Loading

0 comments on commit c6ce243

Please sign in to comment.