mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-30 19:12:07 +08:00
model_replay: update format_diff call
old-commit-hash: ef00bf76c1db2ac85f8033e48e89213f1f846d44
This commit is contained in:
@@ -176,8 +176,9 @@ if __name__ == "__main__":
|
||||
# TODO this tolerence is absurdly large
|
||||
tolerance = 5e-1 if PC else None
|
||||
results: Any = {TEST_ROUTE: {}}
|
||||
log_paths: Any = {TEST_ROUTE: {'ref': BASE_URL + log_fn, 'new': log_fn}}
|
||||
results[TEST_ROUTE]["models"] = compare_logs(cmp_log, log_msgs, tolerance=tolerance, ignore_fields=ignore)
|
||||
diff1, diff2, failed = format_diff(results, ref_commit)
|
||||
diff1, diff2, failed = format_diff(results, log_paths, ref_commit)
|
||||
|
||||
print(diff2)
|
||||
print('-------------\n'*5)
|
||||
|
||||
Reference in New Issue
Block a user