Skip to content

Commit 911b10a

Browse files
sbryngelsonclaude
andcommitted
Add TUI frozen indicator; fix spell check scanning build_test/
tui.py: show '[frozen]' tag in 2D header and 1D title when color range is locked .typos.toml: exclude build/ and build_test/ to prevent false positives from Doxygen-generated HTML hash strings Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 12e09fa commit 911b10a

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.typos.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ tru = "tru" # typo for "true" in "when_tru" - tests dependency keys
3131
PNGs = "PNGs"
3232

3333
[files]
34-
extend-exclude = ["docs/documentation/references*", "docs/references.bib", "tests/", "toolchain/cce_simulation_workgroup_256.sh", "build-docs/"]
34+
extend-exclude = ["docs/documentation/references*", "docs/references.bib", "tests/", "toolchain/cce_simulation_workgroup_256.sh", "build-docs/", "build/", "build_test/"]

toolchain/mfc/viz/tui.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ def render(self): # pylint: disable=too-many-branches,too-many-locals,too-many-
9696
plot_y = data
9797
ylabel = self._varname
9898
title_tag = ""
99+
if self._vmin is not None or self._vmax is not None:
100+
title_tag += " [frozen]"
99101
finite = plot_y[np.isfinite(plot_y)]
100102
self._last_vmin = float(finite.min()) if finite.size else 0.0
101103
self._last_vmax = float(finite.max()) if finite.size else 1.0
@@ -182,9 +184,10 @@ def render(self): # pylint: disable=too-many-branches,too-many-locals,too-many-
182184

183185
y_cc = self._y_cc if self._y_cc is not None else np.array([0.0, 1.0])
184186
log_tag = " [log]" if log_active else (" [log n/a]" if self._log_scale else "")
187+
frozen_tag = " [frozen]" if self._vmin is not None else ""
185188
header = RichText(
186189
f" {self._varname} (step {self._step})"
187-
f" [{vmin:.3g}, {vmax:.3g}]{log_tag}",
190+
f" [{vmin:.3g}, {vmax:.3g}]{log_tag}{frozen_tag}",
188191
style="bold"
189192
)
190193
footer = RichText(

0 commit comments

Comments
 (0)