Skip to content

Commit

Permalink
Addressing Bug in identifying parent for units #800
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-klein committed Dec 4, 2024
1 parent 03f78cd commit 5c6e081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starsim/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def init_time(self, force=False):
self.t.init(sim=self.sim) # Sets the absolute sim time vector

# Find all time parameters in the module
timepars = sc.search(self.pars, type=ss.TimePar) # Should it be self or self.pars?
timepars = sc.search(self.pars, type=ss.TimePar, skip=dict(keys='sim')) # Should it be self or self.pars?

# Initialize them with the parent module
for timepar in timepars.values():
Expand Down

0 comments on commit 5c6e081

Please sign in to comment.