Skip to content

Commit

Permalink
Drop support for PyMC <5
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelosthege committed Aug 2, 2023
1 parent 25cf485 commit 40d0e0a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
python-version: ["3.8", "3.10", "3.11"]
pymc-version: ["without", "'pymc>=4.2.2,<5'", "'pymc>=5.0.0'"]
pymc-version: ["without", "'pymc>=5.0.0'"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion bletl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
NoMeasurementData,
)

__version__ = "1.3.1"
__version__ = "1.4.0"
12 changes: 3 additions & 9 deletions bletl/growth.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
import logging
import typing
from typing import Dict, Optional, Sequence, Tuple, Union

import arviz
import calibr8
import numpy
import pymc as pm
import pytensor.tensor as pt
from packaging import version

try:
import pytensor.tensor as pt
except ModuleNotFoundError:
import aesara.tensor as pt # type: ignore


_log = logging.getLogger(__file__)


Expand Down Expand Up @@ -198,8 +192,8 @@ def _make_random_walk(
"""
pmversion = version.parse(pm.__version__)

if pmversion < version.parse("4.2.2"):
raise NotImplementedError("PyMC versions <4.2.2 are no longer supported.")
if pmversion < version.parse("5.0.0"):
raise NotImplementedError("PyMC versions <5.0.0 are no longer supported.")

if student_t:
innov_dist = pm.StudentT.dist(mu=mu, sigma=sigma, nu=nu)
Expand Down

0 comments on commit 40d0e0a

Please sign in to comment.