I tried to use the following statements in a bit of python code. The formatting worked, however, it used the value of current image in all of the placeholders. Why is this the case? If I remove the current image it does the same with expected_time.
print expected_time
print "Frame No. {0:06d} Expected: {0:.3f}ms Actual: {0:.3f}ms Difference: {0:.3f}ms".format(currentImage, expected_time, regression_obj.timeFromStart, abs(expected_time - regression_obj.timeFromStart))
OUTPUT:
Frame No. 000001 Expected: 1.000ms Actual: 1.000ms Difference: 1.000ms - ERROR