MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / print_property

Function print_property

scripts/meshstat.py:16–20  ·  view source on GitHub ↗
(name, val, expected=None)

Source from the content-addressed store, hash-verified

14from print_utils import print_bold, print_header, print_green, print_red
15
16def print_property(name, val, expected=None):
17 if expected is not None and val != expected:
18 print_red("{:-<48}: {}".format(name, val));
19 else:
20 print("{:-<48}: {}".format(name, val));
21
22def print_section_header(val):
23 print_green("{:_^55}".format(val));

Callers 2

print_extended_infoFunction · 0.85

Calls 1

print_redFunction · 0.90

Tested by

no test coverage detected