From a5992da12903616b5c0593da743ea1bb6dff0eea Mon Sep 17 00:00:00 2001 From: Galen Seilis Date: Sun, 16 Jun 2024 21:32:39 -0700 Subject: [PATCH] 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. --- ciw/dists/distributions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ciw/dists/distributions.py b/ciw/dists/distributions.py index 889062c..793cf11 100644 --- a/ciw/dists/distributions.py +++ b/ciw/dists/distributions.py @@ -79,8 +79,8 @@ def __repr__(self): return "CombinedDistribution" def sample(self, t=None, ind=None): - s1 = self.d1.sample() - s2 = self.d2.sample() + s1 = self.d1.sample(t, ind) + s2 = self.d2.sample(t, ind) return self.operator(s1, s2)