Repository navigation
fix: coiling provenance names only CH-CR; a full-slip test holds to round-off - #54
Conversation
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>
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
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>
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
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_coilinglisted 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: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_provenanceassertedcored.EI_tangent_Nm2 >= plain.EI_tangent_Nm2exactly 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 areEI_minto round-off.cablexsec-ci, the CI wheels)cablexsec)The comparison therefore held only by chance on one build. The test now does two things:
EI_min, which is 2.8e-14 relative and 2.4 times the largest measured distance.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 envcablexsec-ci, built with CI's install command (pip install ".[dev,fast,contact]", Python 3.11, NumPy 2.4.6, SciPy 1.17.1).NUMBA_NUM_THREADS=1(on 8f4d296, before the test fix): 4904 passed, 3 skipped, 1 failed. The failure istest_coupling_and_provenance, the exact comparison fixed in 984b4e4; the fixed file passes in both envs.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 filesruff checkandruff format --checkonsrc tests examples validation release doc: clean--collect-onlyper marker: unchanged at 1248 / 77 / 59