Commit f3971faa authored by johann dreo's avatar johann dreo
Browse files

fix: avoid rounding out of domain

parent 6e83a121
......@@ -17,7 +17,7 @@ def to_sensors(sol):
assert(len(sol)>0)
sensors = []
for i in range(0,len(sol),2):
sensors.append( ( int(round(sol[i])), int(round(sol[i+1])) ) )
sensors.append( ( int(floor(sol[i])), int(floor(sol[i+1])) ) )
return sensors
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment