Skip to content

fix: coiling provenance names only CH-CR; a full-slip test holds to round-off - #54

Merged
SMI-Lab-Inha merged 2 commits into
devfrom
fix/coiling-stale-gates
Nov 20, 2026
Merged

SMI-Lab-Inha merged 2 commits into
devfrom
fix/coiling-stale-gates

Conversation

@SMI-Lab-Inha

@SMI-Lab-Inha SMI-Lab-Inha commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Summary

Two clean-ups: the stale coiling provenance gates, and a test whose exact comparison held by chance on one NumPy build.

The provenance of compute_coiling listed five gates: CH-GJ, CH-EI, CH-P, CH-D and CH-CR. #51 removed CH-GJ. CH-EI, CH-P and CH-D are rows that were removed before v0.1.0 (they are not in the v0.1.0 tag) and are not in the validation report. They compared the coiling cable with the outputs of the source's cross-section tools. The gates tuple now names only the existing row:

gates=("CH-CR",),

CH-CR checks the source's closed-form radial-buckling capacity (Chae, Nam and Shim 2023, Eqs. 17–19) against its own Table 6. No result changes.

Test that held by chance on one NumPy build

tests/test_core_friction.py::test_coupling_and_provenance asserted cored.EI_tangent_Nm2 >= plain.EI_tangent_Nm2 exactly at 0.002 1/m (66 kV template, 50 kN). At that curvature the section is in full slip with and without the cores, so both tangents are EI_min to round-off.

NumPy 2.4.6 (conda env cablexsec-ci, the CI wheels) NumPy 2.5.4 (conda env cablexsec)
plain tangent − EI_min +15 ulps +15 ulps
cored tangent − EI_min +54 ulps −24 ulps
cored − plain +39 ulps (+6.5e-15) −39 ulps (−6.5e-15): failed, on dev 1a595af too

The comparison therefore held only by chance on one build. The test now does two things:

  • It states the full-slip state: each tangent is within 128 ulps of EI_min, which is 2.8e-14 relative and 2.4 times the largest measured distance.
  • It checks the inequality to the same round-off.

It passes in both envs (the file: 31 passed in each). No validation band or result tolerance changes.

Gates

Both full suites run in the conda env cablexsec (NumPy 2.5.4, SciPy 1.18.1, numba 0.68.1). mypy runs in the conda env cablexsec-ci, built with CI's install command (pip install ".[dev,fast,contact]", Python 3.11, NumPy 2.4.6, SciPy 1.17.1).

  • full suite with NUMBA_NUM_THREADS=1 (on 8f4d296, before the test fix): 4904 passed, 3 skipped, 1 failed. The failure is test_coupling_and_provenance, the exact comparison fixed in 984b4e4; the fixed file passes in both envs.
  • full suite with CABLEXSEC_DISABLE_NUMBA=1 (also on 8f4d296): 4788 passed, 119 skipped, 1 failed, the same test.
  • python -m mypy (cablexsec-ci): no issues in 120 source files
  • ruff check and ruff format --check on src tests examples validation release doc: clean
  • taxonomy from --collect-only per marker: unchanged at 1248 / 77 / 59

The provenance of compute_coiling also listed CH-EI, CH-P and CH-D, rows
that were removed before 0.1.0 and are not in the validation report.

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 20, 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-20T13:41:02.202235Z 984b4e4 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 8f4d296eff

ℹ️ 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".

@read-the-docs-community

read-the-docs-community Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 CableXSec | 🛠️ Build #36043368 | 📁 Comparing 984b4e4 against latest (240bf9c)

  🔍 Preview build  

24 files changed · ± 24 modified

± Modified

test_coupling_and_provenance asserted cored.EI_tangent >= plain.EI_tangent
exactly at 0.002 1/m on the 66 kV template at 50 kN. The section is in full
slip there with and without the cores, so both tangents are EI_min
(21740.6081088073 N m^2) to round-off. They differ by 1.42e-10 N m^2, 39
ulps or 6.5e-15 relative, and the sign of that difference depends on the
NumPy build: +39 ulps with NumPy 2.4.6 (the CI wheels, conda env
cablexsec-ci), -39 ulps with NumPy 2.5.4 (conda env cablexsec), where the
test failed, on dev as well. The comparison held by chance on one build.

The test now states the full-slip state (each tangent within 128 ulps of
EI_min; the largest measured distance is 54 ulps) and the inequality to the
same round-off. No validation band or tolerance of a result changes.

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

Copy link
Copy Markdown
Owner Author

@codex review

@SMI-Lab-Inha SMI-Lab-Inha changed the title fix: the coiling provenance names only its existing gate, CH-CR fix: coiling provenance names only CH-CR; a full-slip test holds to round-off Nov 20, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 984b4e440c

ℹ️ 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 e10cc14 into dev Nov 20, 2026
14 checks passed
@SMI-Lab-Inha
SMI-Lab-Inha deleted the fix/coiling-stale-gates branch November 20, 2026 15:29
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