Script execution
This commit is contained in:
+14
-1
@@ -14,4 +14,17 @@ scd_sim.set_center(1.0, 1.0)
|
||||
|
||||
|
||||
|
||||
|
||||
#This ios to force read from the device - and not use monitor cache
|
||||
#scd.setTrustedMonitor(False)
|
||||
|
||||
|
||||
|
||||
#Builtin functions
|
||||
def enforceMonotonic(array)
|
||||
"""
|
||||
Make sure array has no repeated values
|
||||
"""
|
||||
for i in range(1,len(array)):
|
||||
if abs(array[i] - array[y-1])< 0.0001:
|
||||
array[i] = array[y-1] + 0.0000001
|
||||
|
||||
|
||||
Reference in New Issue
Block a user