MCPcopy Create free account
hub / github.com/SLiCAP/SLiCAP_python / _is_placeholder

Function _is_placeholder

SLiCAP/schematic/latex_label.py:158–163  ·  view source on GitHub ↗

True for the bare "?" reminder used for unset values/models. It is shown literally as a prompt to the user and must never be handed to SLiCAP's expression parser, which would raise a Sympify error on it.

(expr_str: str)

Source from the content-addressed store, hash-verified

156
157
158def _is_placeholder(expr_str: str) -> bool:
159 """True for the bare "?" reminder used for unset values/models.
160
161 It is shown literally as a prompt to the user and must never be handed to
162 SLiCAP's expression parser, which would raise a Sympify error on it."""
163 return expr_str.strip() == "?"
164
165
166def render_name_eq_value(name: str, value_str: str) -> bytes | None:

Callers 2

expression_to_latexFunction · 0.85
_render_freshFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected