MCPcopy Index your code
hub / github.com/SLiCAP/SLiCAP_python / is_expression

Function is_expression

SLiCAP/schematic/latex_label.py:152–155  ·  view source on GitHub ↗

True when the value string is a {…} expression.

(value_str: str)

Source from the content-addressed store, hash-verified

150# ── public API ────────────────────────────────────────────────────────────────
151
152def is_expression(value_str: str) -> bool:
153 """True when the value string is a {…} expression."""
154 s = value_str.strip()
155 return s.startswith("{") and s.endswith("}")
156
157
158def _is_placeholder(expr_str: str) -> bool:

Callers 3

update_labelsMethod · 0.85
render_expressionFunction · 0.85
expression_to_latexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected