Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ All notable changes to CableXSec are recorded in this file. The format follows

## [Unreleased]

## [0.2.2] - 2026-12-01

The Python interfaces are versioned but may change before `1.0.0`. The evidence for
every item below is in
[VALIDATION.md](https://github.com/SMI-Lab-Inha/CableXSec/blob/main/VALIDATION.md); its
generated table is reproduced by `python validation/scripts/run_validation.py`. The
thermal entries under Changed and Fixed change results (the loss terms are now computed
from the cable by default), and the rename of `read_riflex_ascii` breaks code that
imports it. The mechanical, fatigue and contact results through `cablexsec` and
`cablexsec.api` are unchanged; submodule functions called directly now read the cable's
own materials (Fixed).

### Added

- `ThermalResult.resistances`: the `T1`, `T2`, `T3` and `T4` of IEC 60287-1-1 Formula (1) that
Expand Down Expand Up @@ -174,6 +186,17 @@ All notable changes to CableXSec are recorded in this file. The format follows
- The per-worker numba cache folders of the tests have short names, below the 260-character
path limit of Windows.

### Known limitations

- The thermal ladder is the IEC single-core-equivalent network. For three-core cables it can
read the conductor temperature several degrees low against 2-D finite-element models
(see Documentation), and a three-core cable with spaced-wire core screens, which IEC
60287-2-1 4.1.2.2.4 treats as belted, follows the SL-type route instead.
- The measured comparisons that failed in 0.2.1 (BM1-loop, BM1-ID, Z-EI, HU-3PB, WITZ-ID,
SV11-PLANE, SV11-GJ) still fail; their targets and tolerances are not relaxed. The
validation table has 73 rows: 50 pass, 7 fail, 13 are stated without a target, 1 is
partial (BM5), 1 not comparable and 1 not validated.

## [0.2.1] - 2026-11-23

The Python interfaces are versioned but may change before `1.0.0`. The evidence for
Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ authors:
repository-code: "https://github.com/SMI-Lab-Inha/CableXSec"
url: "https://github.com/SMI-Lab-Inha/CableXSec"
license: Apache-2.0
version: 0.2.1
date-released: 2026-11-23
version: 0.2.2
date-released: 2026-12-01
keywords:
- dynamic power cable
- cross-section mechanics
Expand Down
4 changes: 2 additions & 2 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ with absolute `https://github.com/SMI-Lab-Inha/CableXSec/blob/main/...` URLs.
python -m build --outdir dist
python -m twine check dist/*
python -m venv wheel-test
wheel-test\Scripts\python -m pip install dist\cablexsec-0.2.1-py3-none-any.whl
wheel-test\Scripts\python release\smoke_test_wheel.py --version 0.2.1
wheel-test\Scripts\python -m pip install dist\cablexsec-0.2.2-py3-none-any.whl
wheel-test\Scripts\python release\smoke_test_wheel.py --version 0.2.2
```

The wheel contains only the `cablexsec` package (with its bundled cable definitions)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ damage of the armour, the conductor and the metallic sheaths.
It reads the results of global analyses (CableDyn runs and time-history CSV exports such
as those of OrcaFlex) and turns them into local stresses and damage, and it exports a hysteretic
bending law for use in global analysis. The
current release is `v0.2.1`; interfaces are versioned and may change before `1.0.0`.
current release is `v0.2.2`; interfaces are versioned and may change before `1.0.0`.

## What CableXSec does

Expand Down Expand Up @@ -74,7 +74,7 @@ Install the release wheel from the
3.12), or install straight from the repository:

```powershell
python -m pip install "cablexsec[fast] @ git+https://github.com/SMI-Lab-Inha/CableXSec.git@v0.2.1"
python -m pip install "cablexsec[fast] @ git+https://github.com/SMI-Lab-Inha/CableXSec.git@v0.2.2"
```

The `fast` extra adds `numba` for the compiled slip-stress and rainflow kernels; without it the
Expand Down Expand Up @@ -154,7 +154,7 @@ in [`validation/`](validation/README.md), including the data of the companion jo

## Citation

If you use CableXSec in academic work, please cite the software release (CableXSec 0.2.1);
If you use CableXSec in academic work, please cite the software release (CableXSec 0.2.2);
[CITATION.cff](CITATION.cff) contains the entry (GitHub **Cite this repository**) and the
manual's [How to cite](https://cablexsec.readthedocs.io/en/latest/citing.html) page gives
BibTeX. The journal article that describes the method is under review; its reference will be
Expand Down
6 changes: 3 additions & 3 deletions doc/citing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ Software release
----------------

Seo, J. H. (2026). *CableXSec: Component-resolved local cross-section mechanics of dynamic
power cables* (version 0.2.1) [Computer software]. https://github.com/SMI-Lab-Inha/CableXSec
power cables* (version 0.2.2) [Computer software]. https://github.com/SMI-Lab-Inha/CableXSec

.. code-block:: bibtex

@software{CableXSec_0_2_1,
@software{CableXSec_0_2_2,
author = {Seo, Jae Hoon},
title = {{CableXSec}: Component-resolved local cross-section mechanics of
dynamic power cables},
version = {0.2.1},
version = {0.2.2},
year = {2026},
url = {https://github.com/SMI-Lab-Inha/CableXSec},
license = {Apache-2.0}
Expand Down
2 changes: 1 addition & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ turns them into the fatigue damage of the armour, the conductor and the metallic
.. admonition:: Release status
:class: note

CableXSec ``v0.2.1`` is the current release. It is distributed as a source
CableXSec ``v0.2.2`` is the current release. It is distributed as a source
repository and a pure-Python wheel on the
`GitHub release page <https://github.com/SMI-Lab-Inha/CableXSec/releases>`_. Every
comparison with published data, including the comparisons that do not meet their
Expand Down
10 changes: 5 additions & 5 deletions doc/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ is distributed through its GitHub repository; it is not published on a package i
From a release
--------------

Download ``cablexsec-0.2.1-py3-none-any.whl`` and ``SHA256SUMS.txt`` from the
`v0.2.1 release <https://github.com/SMI-Lab-Inha/CableXSec/releases/tag/v0.2.1>`_, compare
Download ``cablexsec-0.2.2-py3-none-any.whl`` and ``SHA256SUMS.txt`` from the
`v0.2.2 release <https://github.com/SMI-Lab-Inha/CableXSec/releases/tag/v0.2.2>`_, compare
the checksum, and install the wheel with its optional extras:

.. code-block:: powershell

Get-FileHash cablexsec-0.2.1-py3-none-any.whl -Algorithm SHA256
python -m pip install "cablexsec-0.2.1-py3-none-any.whl[fast]"
Get-FileHash cablexsec-0.2.2-py3-none-any.whl -Algorithm SHA256
python -m pip install "cablexsec-0.2.2-py3-none-any.whl[fast]"

From the repository
-------------------

.. code-block:: powershell

python -m pip install "cablexsec[fast] @ git+https://github.com/SMI-Lab-Inha/CableXSec.git@v0.2.1"
python -m pip install "cablexsec[fast] @ git+https://github.com/SMI-Lab-Inha/CableXSec.git@v0.2.2"

or, for development, clone the repository and install it in editable mode (see
:doc:`development`):
Expand Down
4 changes: 2 additions & 2 deletions doc/tutorials/04_contact_and_fretting.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ fretting life.

Nor is it the {term}`Ruiz parameter` (Ruiz et al. 1984), which is formed from the
local surface shear traction and slip and, in its second form, the local
tangential stress. CableXSec 0.2.1 does not compute Ruiz parameters.
tangential stress. CableXSec 0.2.2 does not compute Ruiz parameters.

## 8. The SWT critical plane next to a crossing

Expand Down Expand Up @@ -298,7 +298,7 @@ Points nearer the surface at the edge itself need a higher quadrature order.
converge; it never returns an unconverged stress.

`compute_swt_cycle` also returns a formal life from a strain-life law
(`SWTLifeConstants`). The SWT constants registered in CableXSec 0.2.1
(`SWTLifeConstants`). The SWT constants registered in CableXSec 0.2.2
(`sn_curves.SWT_LIFE`) are those of copper, and none are for armour steel, so
the script passes a placeholder law and prints no life. With constants from a
source, `result.life_cycles` gives it.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "cablexsec"
version = "0.2.1"
version = "0.2.2"
description = "Component-resolved local cross-section mechanics and fatigue of dynamic power cables"
readme = "README.md"
requires-python = ">=3.11,<3.13"
Expand Down
2 changes: 1 addition & 1 deletion src/cablexsec/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@
UnmodelledPolymerSofteningWarning,
)

__version__ = "0.2.1"
__version__ = "0.2.2"

from cablexsec.project import ( # noqa: E402
PROJECT_FORMAT_VERSION,
Expand Down
3 changes: 2 additions & 1 deletion validation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ global simulation files are not redistributed.
| Path | Contents |
| --- | --- |
| [`validation_report.md`](validation_report.md) | The generated table of every analytical gate and benchmark, with targets, values and status |
| [`RELEASE_0_2_1.md`](RELEASE_0_2_1.md) | Environment, test results, gate results and distribution hashes for v0.2.1 |
| [`RELEASE_0_2_2.md`](RELEASE_0_2_2.md) | Environment, test results and gate results for v0.2.2 |
| [`RELEASE_0_2_1.md`](RELEASE_0_2_1.md) | The same record for the 0.2.1 release |
| [`RELEASE_0_2_0.md`](RELEASE_0_2_0.md) | The same record for the 0.2.0 release |
| [`RELEASE_0_1_0.md`](RELEASE_0_1_0.md) | The same record for the 0.1.0 release |
| [`paper_data/`](paper_data/README.md) | Digitised published measurements and the results of the companion article's calculations |
Expand Down
53 changes: 53 additions & 0 deletions validation/RELEASE_0_2_2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!-- SPDX-License-Identifier: Apache-2.0 -->

# CableXSec v0.2.2 release record

This record lists what was built and tested for the v0.2.2 release: the environments, the test
results and the release checks. Case definitions and pass criteria are in
[`VALIDATION.md`](../VALIDATION.md). The SHA-256 hashes of the published assets are those of
the `SHA256SUMS.txt` that the release workflow attaches to the GitHub release.

## Source

| Item | Value |
| --- | --- |
| CableXSec | `0.2.2` |
| Scope | the solver kernel (`cablexsec`) and its post-processing tools, the `cablexsec-batch` command, the tests, examples, validation data and scripts; no desktop application |
| Changes since 0.2.1 | the thermal rating to IEC 60287-1-1:2023 and IEC 60287-2-1:2023 with IEC 60228:2023 resistances (a change that moves thermal results), CIGRE TB 880 Case studies 2 and 8, the CIGRE TB 862 block programme and specimen checks, the SV11 measurement rows and the coupled core slip row SK23-T1, the rename of `read_riflex_ascii` to `read_ascii_columns`; see [`CHANGELOG.md`](../CHANGELOG.md) |

## Environments of the local gates

Each environment is a new conda environment (conda-forge Python) into which the package and its
`dev`, `fast` and `contact` extras were installed with pip from the package index, as in CI.

| Item | Python 3.11 | Python 3.12 |
| --- | --- | --- |
| Operating system | Windows 11 (x86-64), one thread per process (`OMP_NUM_THREADS`, `MKL_NUM_THREADS`, `OPENBLAS_NUM_THREADS`, `NUMBA_NUM_THREADS` = 1) | same |
| Python | 3.11.18 | 3.12.16 |
| Runtime | NumPy 2.4.6, SciPy 1.17.1, pandas 3.1.1, Pydantic 2.14.4, Matplotlib 3.11.2, PyYAML 6.0.4, rainflow 3.3.0 | NumPy 2.5.5, SciPy 1.18.1, pandas 3.1.1, Pydantic 2.14.4, Matplotlib 3.11.2, PyYAML 6.0.4, rainflow 3.3.0 |
| Optional | numba 0.68.1, Clarabel 0.11.1 | numba 0.68.1, Clarabel 0.11.1 |
| Tools | pytest 9.2.0, pytest-cov 7.1.0, pytest-xdist 3.8.0, Ruff 0.15.22, mypy 2.4.1, build 1.6.1, Twine 7.0.0, setuptools 84.2.1 | the same, and Sphinx 9.0.4, MyST-Parser 5.1.0 |

## Test results

The gates ran one process at a time on a machine that was also running other solver jobs.

| Gate | Result |
| --- | --- |
| Test suite, Python 3.12 (`python -m pytest`, serial) | 5083 tests collected; exit status 0 (no failure or error) |
| Line and branch coverage of `cablexsec`, Python 3.11 (`release/check_coverage.py`: whole suite, then the kernel tests with `NUMBA_DISABLE_JIT=1`) | 96.50 %; gate 95 % |
| Ruff lint and format check (`src`, `tests`, `examples`, `validation`, `release`, `doc`) | clean |
| mypy, strict, package `cablexsec` (the CI configuration, Python 3.11 with NumPy 2.4.6) | no issues in 123 source files |
| Validation report (`validation/scripts/run_validation.py --check`, Python 3.11 and 3.12) | the committed report is current in both environments; 73 rows: 50 pass, 7 fail (BM1-loop, BM1-ID, Z-EI, HU-3PB, WITZ-ID, SV11-PLANE, SV11-GJ; registered targets unchanged), 13 stated without a target (info), 1 partial (BM5), 1 not comparable (HU-uniform), 1 not validated (BM4); taxonomy 1356 `analytical_sanity`, 105 `independent_method`, 62 `full_scale` tests. The script exits with status 1 while registered FAIL rows exist, as in CI |
| Sphinx documentation (`-W --keep-going`), Python 3.12 | built with no warnings |
| Release-tree audit (`release/audit_release_tree.py --tree .` and `--archive-ref HEAD`) | passed |
| Release metadata (`release/check_release_metadata.py`) | passed |
| Python distributions (`python -m build` with `SOURCE_DATE_EPOCH` set, `twine check`) | sdist and wheel pass; both carry LICENSE and NOTICE; the wheel holds only `cablexsec` and its metadata |
| Wheel in a new conda environment (Python 3.12), sdist in another (Python 3.11), each with the `fast` extra | in both: `cablexsec` imported from the environment, not the source tree; `release/smoke_test_wheel.py`; `cablexsec-batch --help`; the README quick start, with output identical to the README (apart from Windows line ends); all twelve examples, the four tutorial and the ten how-to scripts of the manual from a separate folder that holds their data but no source |

Against 0.2.1, the new rows are TB880-C2 and TB880-C8 (pass), and SV11-LK, SV11-SIDE, SV11-SUB,
SV11-NORM and SK23-T1 (info). No existing row changes status.

The CI matrix (`.github/workflows/python.yml`: Ubuntu, Windows and macOS with Python 3.11 and
3.12, a run without numba, coverage, the validation report, distributions and documentation)
runs on the release pull request.
Loading