Skip to content

release: CableXSec 0.2.2 - #72

Merged
SMI-Lab-Inha merged 11 commits into
mainfrom
release/0.2.2-on-main
Nov 30, 2026
Merged

SMI-Lab-Inha merged 11 commits into
mainfrom
release/0.2.2-on-main

Conversation

@SMI-Lab-Inha

Copy link
Copy Markdown
Owner

Summary

This PR releases CableXSec 0.2.2 from dev, rebased onto main (it replaces #71, whose branch conflicted with main: main holds rebased copies of the dev commits, and dev carries an empty Unreleased heading that main lacks; each CHANGELOG conflict took the dev version, and the final tree is identical to that of #71, 48de9d6). The record of the release checks is validation/RELEASE_0_2_2.md.

What 0.2.2 contains

Change PR Effect on results
Thermal ladder to IEC 60287-1-1:2023 and IEC 60287-2-1:2023; loss terms computed from the cable by default #66 thermal results change (66 kV template at 1093 A: 118.3 °C, was 95.3 °C, under the assumed burial)
CIGRE TB 880 Case studies 2 and 8 (rows TB880-C2, TB880-C8); ThermalResult.resistances #69 new rows, both pass
TB 862 block programme of a full-scale fatigue test (BlockProgramme, FatigueTestBlock) #70 new API
Rig tension phase lag, constant-tension block protocols, TB 862 specimen-length checks #67 new API
Submodule functions called directly read the cable's own materials; row SK23-T1 #64 none through cablexsec and cablexsec.api
SV11 measurement rows (SV11-LK, -SIDE, -SUB, -NORM) #63 info rows; no target, band or default changes
read_riflex_ascii renamed read_ascii_columns; IEC single-core-equivalent accuracy documented #68 breaking rename
TB 862 compression clause, material sources #65 docs

Mechanical, fatigue and contact results through cablexsec and cablexsec.api do not change.

Release commits

  • Release 0.2.2: version and changelog:
    • the version in pyproject.toml, the package, CITATION.cff, the README and the docs;
    • the changelog's unreleased notes, moved to 0.2.2 with its known limitations.
  • Release 0.2.2: release record, release date 2026-12-01.
  • Release 0.2.2: distribution checks in the release record.

Local release checks

All checks ran in new conda environments, Python 3.11 and 3.12, with one thread per process.

Check Result
Test suite (3.12) 5083 tests, exit status 0
Coverage (3.11) 96.50 % (gate 95 %)
Ruff, ruff format clean
mypy strict (3.11) clean, 123 files
run_validation.py --check (3.11, 3.12) report current; 73 rows: 50 pass, 7 fail (registered), 13 info, 1 partial, 1 not comparable, 1 not validated
Sphinx -W no warnings
Release metadata, tree and archive audit pass
Wheel (3.12) and sdist (3.11) installs smoke test, cablexsec-batch --help, README quick start identical, 12 examples and 14 manual scripts
  • Validation changes against 0.2.1: seven new rows (TB880-C2 and TB880-C8 pass; SV11-LK, SV11-SIDE, SV11-SUB, SV11-NORM and SK23-T1 are info). No existing row changes status.
  • Test summary line: the suite ran serially with the configured -q plus -q, which hides pytest's summary line; the record gives the collected count and the exit status.

After merge

  • Annotated tag v0.2.2 on the merge commit and the GitHub release (the release workflow attaches the wheel, the sdist and SHA256SUMS.txt).
  • Bring main back into dev.

…s) (#63)

validation: what the SV11 measurements are (Lukassen two-sided records)

Four reported rows, registered before the runs: SV11-LK (axial against
axial, Lukassen 2019 thesis Figs 2.7-2.11: the SV11-GJ chain
over-predicts at the bending-plane stations by 1.72 sectional, 1.97
corrected), SV11-SIDE (Saevik normalised the larger side range),
SV11-SUB and SV11-NORM. The records are digitised from the native PDF
paths. The Zeidan section adds source notes. No target, band, gated
input or default changes; SV11-PLANE and SV11-GJ stay FAIL.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
… SK23-T1 (#64)

fix: direct calls read the cable materials; Skeie 2023 credit and row SK23-T1

Ninety public functions of 36 submodules that take a cable read the
library values when called directly (xi_for_layer gave 1.000 for
Zeidan's inner armour instead of 0.832): every submodule now wraps them
with scope_entry_points, as cablexsec and cablexsec.api do, and a
nested call with the same cable object skips re-entering the scope (no
measurable cost). A test walks every module.

The coupled intralayer core slip credits Skeie, Sodahl, Pettersen and
Verde (2023, OMAE2023-104817); the largest friction stress saturates at
pi/3 times the onset, the "full slip" of their Table 1, before the
coalescence at 1.209. New reported row SK23-T1 runs their worked case.

Documentation: the bonded face's stuck coefficient takes the support
and the bond in parallel (unchanged only on a rigid support) and its
friction cap is not reduced; the stuck cos^4 normal curvature cites
Saevik (2011) Eq. 50; report cells escape a literal |; 0.2.1 version
references. Tests: a tolerance instead of exact equality in the
curvature-component test; short numba cache folder names.
Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
…#65)

The ULS guide cited the compression tests to MecLim II Section 5.7,
which only refers to them; CIGRE TB 862 Section 6.6.1 gives them
(compression with cyclic bending, safety factor at least 1.3 on the
force, at least 100 bending cycles; pure axial compression).

Four material sources named standards that do not hold the values:
IEC 60228 sets no tensile limit for copper, and IEC 60287-2-1 lists no
metal thermal resistivity (lead, aluminium). The permittivity of
xlpe_qiao2025 was 2.3, the PE row of the IEC 60287-1-1 table it cites;
the XLPE row is 2.5. No analysis reads that value.

The 0.2.0 changelog and the benchmark register compared the Chae, Nam
and Shim (2023) torsional stiffness with the outputs of the source's
cross-section programs. The comparison had no measurement and is
removed; the core-lay sensitivity stays.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
…66)

The loss terms defaulted to zero and the conductor resistance was
rho/A: on a 630 mm2 three-core cable the conductor loss was about 9 %
low before any sheath loss. They are now computed from the cable unless
given, following IEC 60287-1-1:2023: R0 from IEC 60228:2023 Table 4 (per
km of the complete cable, so not multiplied by the lay-up factor), else
rho/A times C_LL (Annex A); the three ranges of the skin factor; the
proximity factor of two- and three-core cables; the sheath loss of
SL-type screens (5.3.11 under magnetic armour, 5.3.2 otherwise, as CIGRE
TB 880 Guidance Point 38 reads it; lambda1'' = 0 as in IEC), with the
screen resistance from the wires of a wire screen over their lay and a
laminated foil in parallel (TB 880 Guidance Points 27 and 29, Case 2);
the dielectric loss from the U0 of the insulation type, with C times
C_LL, and missing loss data judged by the declared type.

Thermal resistances follow IEC 60287-2-1:2023: per-core annuli divided
by C_LL, T1 from the conductor diameter d_c, and the fillers and bedding
of an armoured three-core SL-type cable by the geometric factor G-bar
(4.1.4.2, 5.6; TB 880 Guidance Point 45). PE is 3.5 K m/W (Table 1) and
PP fillers and yarn 6.0 K m/W.

The 220 kV cable of Poradowski and Anders (2025) is renamed from the TB
880 name and gains the semiconducting screens, swelling tape and air
layers of its Table 1 (T1 0.6578 against 0.6579 K m/W); the export
template gains its screens. BM5 is rediagnosed: R0 from IEC 60228 moves
it from 84.4 to 85.8 degC and the TB 880 eddy loss to 90.9 degC (FEM
89.62, IEC 90); the factor 1.5 of 5.3.11 is for magnetic armour.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
Three additions to the rig-test module for full-scale dynamic-cable test
programmes per CIGRE TB 862 (2022):

- RigProtocol.cyclic takes tension_phase_lag_deg, any lag between the
  tension and the bending cycle; the ramp ends at the first-cycle tension.
- RigProtocol.blocks builds constant-tension block programmes (TB 862
  6.3.4.1) from RigBlock entries joined by linear transitions;
  block_times_s records each block's cycling interval.
- tb862_specimen_checks tests specimen lengths against the cable's lay
  pitches (6.3.2 fatigue, 6.4.2.2 bending stiffness, 6.6.1.2 compression).
  component_pitches lists armour, core lay, strand rings, stranded
  sub-conductors, tape windings and single-angle strand lays (at the outer
  radius, an upper bound). A check whose pitch is withheld is refused, not
  passed.

Tests: tests/test_rig_tb862.py (21); analytical_sanity 1347.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
#68)

docs: generic ASCII-column reader; IEC single-core-equivalent accuracy

read_riflex_ascii is renamed read_ascii_columns (module
cablexsec.io.ascii_columns_reader). It reads whitespace-separated columns
by position and was never checked against output of the program it was
named after, so README, CITATION, the docs, the how-to, the glossary and
the provenance no longer name one. Arguments and results are unchanged;
the test fixture is renamed synthetic_columns.asc.

The thermal docs state the accuracy limit of the IEC single-core-equivalent
ladder for three-core cables (Chatzipetros and Pilgrim 2018, IEEE Trans.
Power Delivery 33(4)): against 2-D finite-element models it reads the
conductor temperature up to 8 degC low for SL-type lead sheaths (Table I)
and 4.9 to 5.9 degC low for Al or Cu foil screens (Table II).

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
…#69)

Rows TB880-C2 and TB880-C8 compare compute_thermal with CIGRE TB 880
(2022) Case study 2 (3x630 mm2 18/30 kV, lead sheaths, galvanised steel
wire armour) and Case study 8 (3x1000 mm2 220 kV, lead sheaths, stainless
armour), on cables built from the brochure's datasheets
(tests/data/tb880/). Bands registered before the first run: T1, T3, y_s,
y_p, W_d within 0.5 %, lambda1' within 1 %; T2 and the ratings stated.
T1, T3, y_s, y_p and lambda1' agree to the printed digits; W_d is +0.136 %
(TB 880's eps0 = 1e-9/(36 pi) against IEC's 8.854e-12). T2 is -5.1 % in
Case 2 (TB 880 takes the cores touching for s but the assembled diameter
for x; the code then selects the other curve) and +0.43 % in Case 8 (the
lead sheath's own resistance). The ratings at 90 degC with TB 880's loss
factors are 841.50 A (838.34 A) and 1134.95 A (1134.82 A).

ThermalResult.resistances returns the T1, T2, T3, T4 of IEC 60287-1-1
Formula (1) that compute_thermal used. Each annulus is split between T2
and T3 by its armour-loss share s = k/m (T2 gets (1 - s) R, T3 gets s R),
so a cable with two armour layers reproduces the solver's thermal circuit.

Fix: the sheath reactance of the 5.3.2 route (SL-type cores, unarmoured or
under non-magnetic armour) now carries the lay-up factor C_LL, as Annex A
gives it to per-metre properties of laid-up cores and as 5.3.11 and TB 880
Case 8 apply it; R_s already did. Case 8 read lambda1' 2.2 % low without
it.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
BlockProgramme and FatigueTestBlock hold the blocks of a full-scale
fatigue test (CIGRE TB 862 6.3.4): cycles, constant tension, curvature
range and damage per cycle from the service fatigue calculation. The
programme gives block and accumulated damage and damage shares, checks the
Table 6-4 requirements it can check by itself (test damage and block
tension against the service values), builds the test sequence with the
switching of 6.3.4.3 and converts the blocks to RigBlocks.

The sequence cuts each block into ceil(1/max_fraction) parts and orders
them so that no two parts of one block follow each other (the next part of
the block with the most parts left, other than the block just run; with
equal part counts this is the 1A..8A, 1B..8B rounds of Table D.3). A
programme whose largest block cannot be separated by the others (one block
alone, or three parts against a single other part) raises CableInputError,
since no sequence meets 6.3.4.3.

TB 862 Tables D.1 to D.3 are regression cases. Table D.3 prints 6.05e-4 for
blocks 3A and 3B; 61 116 cycles at 9.90e-10 give 6.05e-5, which its total
uses. Its Appendix D.3 gives a service mean tension of 82 kN but runs the
Table D.2 blocks at 80 kN, so the strict tension check fails on its own
example (recorded in a test).

Docs: ThermalResult.resistances, the CHANGELOG and the local analysis guide
still described the T2/T3 split at the innermost armour; since #69 each
annulus is split by its armour-loss share k/m.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
Version 0.2.2 in pyproject.toml, cablexsec.__version__, CITATION.cff,
the README, the manual (index, installation, citing, tutorial 4) and
DEVELOPMENT.md; the [Unreleased] notes move under 0.2.2 with its
known limitations.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
validation/RELEASE_0_2_2.md records the environments and the local gate
results of the release: the Python 3.12 test suite, coverage 96.50 %, Ruff,
mypy, the validation report on Python 3.11 and 3.12 (73 rows; the seven
registered FAIL rows unchanged), the documentation build and the release-tree
audit. validation/README.md lists it. The release date moves to 2026-12-01.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
The wheel and the sdist built from 1f220ed pass twine, install in new
conda environments and run the smoke test, the batch command, the README
quick start and all 26 example, tutorial and how-to scripts.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 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-30T18:59:28.962514Z be97b3a 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.

@SMI-Lab-Inha

Copy link
Copy Markdown
Owner Author

@codex review

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 CableXSec | 🛠️ Build #36274752 | 📁 Comparing be97b3a against latest (2af48a4)

  🔍 Preview build  

21 files changed · ± 21 modified

± Modified

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: be97b3ab4a

ℹ️ 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 8f9befc into main Nov 30, 2026
14 checks passed
@SMI-Lab-Inha
SMI-Lab-Inha deleted the release/0.2.2-on-main branch November 30, 2026 23:50
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