Skip to content

Commit a5992da

Browse files
authored
Update CombinedDistribution in distributions.py
Passed the time and individual arguments are now being passed to each distribution that gets sampled within the CombinedDistribution's sample method. This expand's the functionality in some cases while leaving the default behaviour the same.
1 parent 8c6bb9a commit a5992da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ciw/dists/distributions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ def __repr__(self):
7979
return "CombinedDistribution"
8080

8181
def sample(self, t=None, ind=None):
82-
s1 = self.d1.sample()
83-
s2 = self.d2.sample()
82+
s1 = self.d1.sample(t, ind)
83+
s2 = self.d2.sample(t, ind)
8484
return self.operator(s1, s2)
8585

8686

0 commit comments

Comments
 (0)