updated grpc node positions to use floats, avoids needing to deal with int conversions
This commit is contained in:
parent
9c302e8bc6
commit
819954a695
6 changed files with 12 additions and 33 deletions
|
@ -489,13 +489,7 @@ class CoreGrpcServer(core_pb2_grpc.CoreApiServicer):
|
|||
:return: node event that contains node id, name, model, position, and services
|
||||
:rtype: core.api.grpc.core_pb2.NodeEvent
|
||||
"""
|
||||
x = None
|
||||
if event.x_position is not None:
|
||||
x = int(event.x_position)
|
||||
y = None
|
||||
if event.y_position is not None:
|
||||
y = int(event.y_position)
|
||||
position = core_pb2.Position(x=x, y=y)
|
||||
position = core_pb2.Position(x=event.x_position, y=event.y_position)
|
||||
services = event.services or ""
|
||||
services = services.split("|")
|
||||
node_proto = core_pb2.Node(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue