Skip to content

Commit

Permalink
offsets handle new pymc inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
adrn committed Aug 20, 2024
1 parent 8008cdf commit 444d42e
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions thejoker/src/fast_likelihood.pyx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# coding: utf-8
# cython: boundscheck=False
# cython: nonecheck=False
# cython: wraparound=False
# cython: initializedcheck=False
# cython: overflowcheck=False
# cython: linetrace=False
# cython: profile=False
# cython: boundscheck=True
# cython: nonecheck=True
# cython: wraparound=True
# cython: initializedcheck=True
# cython: overflowcheck=True
# cython: linetrace=True
# cython: profile=True
# cython: cdivision=True
# cython: language_level=3

Expand Down Expand Up @@ -213,10 +213,7 @@ cdef class CJokerHelper:
_unit = getattr(dist, xu.UNIT_ATTR_NAME)
to_unit = self.internal_units[name]

# mean is par 0, stddev par 1
pars = dist.owner.inputs[3:]
mu = (pars[0].eval() * _unit).to_value(to_unit)
std = (pars[1].eval() * _unit).to_value(to_unit)
mu, std = _pytensor_get_mean_std(dist, _unit, to_unit)

# K, v0 = 2 - start at index 2
self.mu[2+i] = mu
Expand Down

0 comments on commit 444d42e

Please sign in to comment.