Skip to content

Commit

Permalink
fixing randnet
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-klein committed Dec 9, 2023
1 parent 3b75555 commit a81702d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stisim/networks/randnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self, *, n_contacts : int | rv_frozen, dynamic=True, **kwargs):
def initialize(self, sim):
super().initialize(sim)
if isinstance(self.n_contacts, ss.ScipyDistribution):
self.n_contacts.initialize(sim)
self.n_contacts.initialize(sim, self)
self.update(sim.people, force=True)

@staticmethod
Expand Down

0 comments on commit a81702d

Please sign in to comment.