Skip to content

Commit f142842

Browse files
awray3Sayam753
andcommitted
Update pymc3/distributions/timeseries.py
Adds a more explicit conditional on the time_axis statement. Co-authored-by: Sayam Kumar <[email protected]>
1 parent e2f71ed commit f142842

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pymc3/distributions/timeseries.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,8 +515,7 @@ def random(self, point=None, size=None):
515515
# component can be accessed with the index equal to the length of size.
516516
time_axis = len(size)
517517
multivariate_samples = multivariate_samples.cumsum(axis=time_axis)
518-
519-
if time_axis:
518+
if time_axis != 0:
520519
# this for loop covers the case where size is a tuple
521520
for idx in np.ndindex(size):
522521
multivariate_samples[idx] = (

0 commit comments

Comments
 (0)