From 8f4d296eff724dac70d5672648b9d36eec475030 Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Fri, 20 Nov 2026 22:19:45 +0900 Subject: [PATCH 1/2] fix: the coiling provenance names only its existing gate, CH-CR 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 --- CHANGELOG.md | 2 ++ src/cablexsec/analysis/coiling.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b682b8a..e84cdc5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -540,6 +540,8 @@ All notable changes to CableXSec are recorded in this file. The format follows ### Fixed +- The provenance of `compute_coiling` lists CH-CR as its only gate. It also named CH-EI, CH-P + and CH-D, rows that were removed before 0.1.0 and no longer exist in the validation report. - `read_cabledyn_sections` reads a section placed on a deck node from that node's channels alone: `CurvX`/`CurvY` on the components route, and `Ten`, `Twist` and `Torq` on every route. Before, every section needed the channels of both nodes of its element, so a station written diff --git a/src/cablexsec/analysis/coiling.py b/src/cablexsec/analysis/coiling.py index 3775b8e..1d6fd57 100644 --- a/src/cablexsec/analysis/coiling.py +++ b/src/cablexsec/analysis/coiling.py @@ -137,7 +137,7 @@ "[LiVaz2021b]", "[DNVGL-RP-0360]", ), - gates=("CH-EI", "CH-P", "CH-D", "CH-CR"), + gates=("CH-CR",), limitations=( "uniform curvature and twist; no transition into the coil, no tank-floor " "or coil-on-coil contact, no weight of the coils above", From 984b4e440cb31cb75841b7a2657c1b1ba74a6791 Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Fri, 20 Nov 2026 22:39:47 +0900 Subject: [PATCH 2/2] test: core friction leaves the full-slip tangent unchanged to round-off 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 --- tests/test_core_friction.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/test_core_friction.py b/tests/test_core_friction.py index d654ce9..1bf89b3 100644 --- a/tests/test_core_friction.py +++ b/tests/test_core_friction.py @@ -485,7 +485,17 @@ def test_coupling_and_provenance(cable): plain = xsec_stiffness(cable, 0.002, tension_N=T) cored = xsec_stiffness(cable, 0.002, tension_N=T, core_friction=SPEC) assert cored.EI_max_Nm2 > plain.EI_max_Nm2 - assert cored.EI_tangent_Nm2 >= plain.EI_tangent_Nm2 + # At 0.002 1/m the section is in full slip with and without the cores: + # both tangents are EI_min, to round-off. They differ by 39 ulps + # (6.5e-15 relative), with a sign that changes with the NumPy build + # (+39 with 2.4.6, -39 with 2.5.4); the largest distance of a tangent + # from EI_min is 54 ulps (cored, 2.4.6). "The cores do not lower the + # tangent" therefore holds to round-off, not bit for bit: 128 ulps of + # EI_min (2.8e-14 relative). + noise = 128 * np.spacing(plain.EI_min_Nm2) + assert abs(plain.EI_tangent_Nm2 - plain.EI_min_Nm2) <= noise + assert abs(cored.EI_tangent_Nm2 - cored.EI_min_Nm2) <= noise + assert cored.EI_tangent_Nm2 >= plain.EI_tangent_Nm2 - noise res = cx.compute_mkappa(cable, _loop(0.1), tension_N=T, core_friction=SPEC) assert "laid-core stick-slip" in res.provenance.method assert "[KarlsenHusoy2026]" in res.provenance.citations