tolerance=1e-9# fix tolerance for outliers at 1 ns for the moment.
while1:
line_meas=meas_out_file.readline()
...
...
@@ -125,8 +179,19 @@ if __name__ == "__main__":
if(line_meas[:len("#")]!="#"andline_ref[:len("#")]=="#")or(line_meas[:len("#")]=="#"andline_ref[:len("#")]!="#"):# one file has comment while the other not
print(name+" and "+nameref+" comment lines in measurement files do not align.")
sys.exit()
ifline_meas[:len("# Selected")]=="# Selected"andline_ref[:len("# Selected")]=="# Selected":# Check if both comments are the same
# Check if both comments are the same and start with "# Selected"
# If both are the same then a log of a new measurement starts => restart statistics