diff --git a/script/local.py b/script/local.py index d6825e9..3b4ab90 100644 --- a/script/local.py +++ b/script/local.py @@ -14,4 +14,17 @@ scd_sim.set_center(1.0, 1.0) - \ No newline at end of file +#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 +