data_logger.normalize_logdir -> normalize_log_dir with data_logger v0.4.
[hooke.git] / test / difference.py
index 43ee58b2bc278123f5b454949b7f67f54a3d5fa2..1800e0b0952f9c6b079e10fb8b9b91f2711e99d8 100644 (file)
@@ -33,12 +33,12 @@ Success
 >>> retract = curve.data[1]
 >>> retract.info['columns']
 ['z piezo (m)', 'deflection (m)', 'difference of retract deflection and approach deflection (m)']
->>> retract[:5,-1]
-Data([ -3.89891186e-09,  -4.19359706e-09,  -4.42027798e-09,
-        -4.78296746e-09,  -5.10032075e-09])
->>> retract[-5:,-1]
-Data([  4.08025660e-10,   2.04012830e-10,   4.53361844e-10,
-         5.21366121e-10,   1.08806843e-09])
+>>> retract[:5,-1]  # doctest: +ELLIPSIS
+Data([ -3.898...e-09,  -4.193...e-09,  -4.420...e-09,
+        -4.782...e-09,  -5.100...e-09])
+>>> retract[-5:,-1]  # doctest: +ELLIPSIS
+Data([  4.080...e-10,   2.040...e-10,   4.533...e-10,
+         5.213...e-10,   1.088...e-09])
 
 Note the differences are not near zero because the z piezo position
 runs in opposite directions for the two blocks.