MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / print_results

Function print_results

tests/runner.py:72–85  ·  view source on GitHub ↗
(results, discovery_time, thresh, status)

Source from the content-addressed store, hash-verified

70
71
72def print_results(results, discovery_time, thresh, status):
73 # only keep results >= threshold
74 results = dict(filter(lambda x: x[1] > thresh, results.items()))
75 if len(results) == 0:
76 return
77 print(f"\n\n{status}, printing completed times >{thresh}s in ascending order...\n")
78 timings = dict(sorted(results.items(), key=lambda item: item[1]))
79
80 for r in timings:
81 if timings[r] >= thresh:
82 print(f"{r} ({timings[r]:.03}s)")
83 print(f"test discovery time: {discovery_time:.03}s")
84 print(f"total testing time: {sum(results.values()):.03}s")
85 print("Remember to check above times for any errors!")
86
87
88def parse_args():

Callers 1

runner.pyFile · 0.85

Calls 1

sumFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…