MCPcopy
hub / github.com/NVIDIA/Isaac-GR00T / check

Function check

scripts/validate_hf_config_alignment.py:48–64  ·  view source on GitHub ↗
(condition, msg, *, warn_only=False, skip=False)

Source from the content-addressed store, hash-verified

46
47
48def check(condition, msg, *, warn_only=False, skip=False):
49 global pass_count, fail_count, warn_count, skip_count
50 if skip:
51 skip_count += 1
52 print(f" {SKIP} {msg}")
53 return True
54 if condition:
55 pass_count += 1
56 print(f" {PASS} {msg}")
57 return True
58 if warn_only:
59 warn_count += 1
60 print(f" {WARN} {msg}")
61 return True
62 fail_count += 1
63 print(f" {FAIL} {msg}")
64 return False
65
66
67def info(msg):

Callers 11

check_dim_b_config_jsonFunction · 0.85
check_dim_d_statisticsFunction · 0.85
check_finiteFunction · 0.85
check_dim_f1_cross_fileFunction · 0.85
check_test_fixtureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected