Skip to content

Commit 4da787e

Browse files
awray3Sayam753
andcommitted
Update pymc3/distributions/timeseries.py
Remove equality since the shape parameter cannot have more than 2 dimensions. Co-authored-by: Sayam Kumar <[email protected]>
1 parent 2c494c9 commit 4da787e

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
@@ -510,8 +510,7 @@ def random(self, point=None, size=None):
510510
size = to_tuple(size)
511511
multivariate_samples = self.innov.random(point=point, size=size)
512512
# this has shape (size, self.shape)
513-
514-
if len(self.shape) >= 2:
513+
if len(self.shape) == 2
515514
# have time dimension in first slot of shape. Therefore the time
516515
# component can be accessed with the index equal to the length of size.
517516
time_axis = len(size)

0 commit comments

Comments
 (0)