Skip to content

Commit

Permalink
Merge pull request #22 from JuBiotech/fix-growth-import
Browse files Browse the repository at this point in the history
Fix import compatibility
  • Loading branch information
michaelosthege authored May 20, 2022
2 parents 00280aa + 0c8ff9a commit 3fbe91c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 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.7, 3.8, 3.9]
pymc-version: ["without", "pymc==4.0.0b2", "pymc3"]
pymc-version: ["without", "pymc==4.0.0b6", "pymc3"]
steps:
- uses: actions/checkout@v2
- 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.1.0"
__version__ = "1.1.1"
10 changes: 8 additions & 2 deletions bletl/growth.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import calibr8
import numpy
import scipy.stats
from calibr8.utils import at, pm
from calibr8.utils import pm
from packaging import version

# Use the new ConstantData container if available,
Expand All @@ -16,6 +16,12 @@
pmData = pm.Data


try:
import aesara.tensor as at
except ModuleNotFoundError:
import theano.tensor as at


_log = logging.getLogger(__file__)


Expand Down Expand Up @@ -429,7 +435,7 @@ def fit_mu_t(
initval=mu_guess,
)

X0 = pm.Lognormal("X0", mu=numpy.log(x0_prior), sd=1)
X0 = pm.LogNormal("X0", mu=numpy.log(x0_prior), sigma=1)
Xt = pm.Deterministic(
"X",
at.concatenate([X0[None], X0 * pm.math.exp(at.extra_ops.cumsum(mu_t * dt))]),
Expand Down

0 comments on commit 3fbe91c

Please sign in to comment.