Skip to content

Commit 44f26a3

Browse files
committed
Fixed missed isinf in node init
1 parent f3116bf commit 44f26a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ciw/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __init__(self, id_, simulation):
5454
else:
5555
self.next_event_date = float("Inf")
5656
self.blocked_queue = []
57-
if self.c < float('Inf'):
57+
if not isinf(self.c):
5858
self.servers = self.create_starting_servers()
5959
self.highest_id = self.c
6060
self.simulation.deadlock_detector.initialise_at_node(self)

0 commit comments

Comments
 (0)