Skip to content

Commit

Permalink
Fix Notebook Controller bug
Browse files Browse the repository at this point in the history
  • Loading branch information
corentinlger committed Mar 18, 2024
1 parent 1f592d8 commit abc8704
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vivarium/simulator/grpc_server/simulator_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ def SetState(self, request, context):
proto_to_ndarray(request.value))
return Empty()

# TODO : Clean the function in the future to prevent having self everywhere
def Step(self, request, context):
assert not self.simulator.is_started()
self.simulator.run(threaded=False, num_loops=1)
self.simulator.state, self.simulator.neighbors = self.simulator.step(self.simulator.state, self.simulator.neighbors)
return state_to_proto(self.simulator.state)


Expand Down

0 comments on commit abc8704

Please sign in to comment.