Skip to content

test: TQ6 pins the documented deviation instead of a 2 % band - #37

Merged
SMI-Lab-Inha merged 1 commit into
devfrom
fix/tq6-pin-documented-value
Nov 18, 2026
Merged

SMI-Lab-Inha merged 1 commit into
devfrom
fix/tq6-pin-documented-value

Conversation

@SMI-Lab-Inha

Copy link
Copy Markdown
Owner

Summary

#35 changed the 66 kV template's screens. Benchmark TQ6 (solved template against the fixed-radius torque coefficient) now reads FAIL against its registered 1 % band in doc/benchmarks.md, and the test was widened from rel=1e-2 to rel=2e-2 so that it passes. A 2 % band hides any further change of either model inside it.

Change

tests/test_torque_balance.py::test_tq6_solved_template_agrees_with_fixed_radius pins the documented deviation:

Value
Solved torque coefficient 1.5026 mm
Fixed-radius torque coefficient 1.5251 mm
Deviation −1.473 %
Pin −1.47 % ± 0.10 percentage point
Registered band (unchanged) 1 %, verdict FAIL

The pin lies wholly outside the registered band, so the row's FAIL is what the test guards.

Checked, left as they are

#35 also loosened six thermal round-off tolerances (1e-9/1e-10 to 1e-8…1e-6). The steady and transient solves are direct (np.linalg.solve), with no iteration tolerance. On dev:

Quantity Measured Tolerance
Conductance ratio (tape to XLPE) 2.4e5 —
cond(K) 7.5e8 (cond × eps 1.7e-7) —
Coupled against fixed-point steady state 1.4e-9 rel 1e-8
Transient hold drift 7.2e-8 K 1e-6 K

These are round-off with margin, not validation bands.

Check

pytest tests/test_torque_balance.py -q
20 passed
ruff check / ruff format --check: clean

No marker or taxonomy change.

#35 widened the TQ6 assertion from 1 % to 2 % so that it passed with the
new 66 kV screens, while the benchmark row reads FAIL against its
registered 1 % band. A 2 % band no longer notices a change of either model
within it. The test now pins the documented deviation (-1.47 %, 1.5026
against 1.5251 mm) to 0.1 percentage point; the registered band and the
FAIL verdict are unchanged.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
@SMI-Lab-Inha

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T09:52:18.938817Z b0a8f33 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 CableXSec | 🛠️ Build #35980165 | 📁 Comparing b0a8f33 against latest (240bf9c)

  🔍 Preview build  

21 files changed · ± 21 modified

± Modified

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: b0a8f33e2b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@SMI-Lab-Inha
SMI-Lab-Inha merged commit 4b7f5c4 into dev Nov 18, 2026
12 checks passed
@SMI-Lab-Inha
SMI-Lab-Inha deleted the fix/tq6-pin-documented-value branch November 18, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant