Script execution

This commit is contained in:
gac-x04sa
2018-01-25 10:29:22 +01:00
parent 51edba990b
commit 060590af17
+14 -1
View File
@@ -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