Skip to content

Commit 734c8e5

Browse files
authored
Update node to have now property method instead in hybrid.rst (#282)
I tried running the example and found that it was breaking due to get_now not existing.
1 parent cd544c8 commit 734c8e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Guides/System/behaviour/hybrid.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Therefore, to link the SD component and the discrete event simulation, we will m
101101
class HybridNode(ciw.Node):
102102
def release(self, next_individual_index, next_node):
103103
super().release(next_individual_index, next_node)
104-
self.simulation.SD.solve(t=self.get_now(), L=self.number_of_individuals)
104+
self.simulation.SD.solve(t=self.now, L=self.number_of_individuals)
105105
106106
107107
class HybridSimulation(ciw.Simulation):

0 commit comments

Comments
 (0)