From dfff30c9eb3e42d740390ebbe82023bf59976cc2 Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Wed, 2 Dec 2026 23:26:04 +0900 Subject: [PATCH 1/2] Release 0.2.3: version and changelog Version 0.2.3 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.3 with a test note for the shortened validation tests and its known limitations. Signed-off-by: Jae Hoon Seo --- CHANGELOG.md | 25 ++++++++++++++++++++++++ CITATION.cff | 4 ++-- DEVELOPMENT.md | 4 ++-- README.md | 6 +++--- doc/citing.rst | 6 +++--- doc/index.rst | 2 +- doc/installation.rst | 10 +++++----- doc/tutorials/04_contact_and_fretting.md | 4 ++-- pyproject.toml | 2 +- src/cablexsec/__init__.py | 2 +- 10 files changed, 45 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f2e9bfa..c20582a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,17 @@ All notable changes to CableXSec are recorded in this file. The format follows ## [Unreleased] +## [0.2.3] - 2026-12-03 + +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 +mechanical, thermal, fatigue and contact results are unchanged. By default, +`read_cabledyn_sections` now refuses a run whose provenance record shows the analysed line +outside the wave grid or a wave-grid resolution finding (`wave_grid_check="warn"` reads it +with a warning); a run without a record reads as before. + ### Added - Global-analysis provenance (`cablexsec.io.global_provenance`): every set of global histories @@ -43,6 +54,20 @@ All notable changes to CableXSec are recorded in this file. The format follows the runs without a record once in `notes`, which `cablexsec-batch` prints. The options and the record do not enter `inputs_sha256` or the assessment digests. +### Tests + +- The two slowest tests build only the validation rows they check (sigma_B; BM1-loop and + BM1-ID) instead of the whole report, and a report computes the SV11 predictions once + instead of twice (the caches of `check_saevik2011` are keyed on the value of the friction + coefficient). The report and its row order are unchanged. + +### Known limitations + +- The measured comparisons that failed in 0.2.2 (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.2] - 2026-12-01 The Python interfaces are versioned but may change before `1.0.0`. The evidence for diff --git a/CITATION.cff b/CITATION.cff index 4448ce2..036fb34 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -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.2 -date-released: 2026-12-01 +version: 0.2.3 +date-released: 2026-12-03 keywords: - dynamic power cable - cross-section mechanics diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index ec17da5..a38a071 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -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.2-py3-none-any.whl -wheel-test\Scripts\python release\smoke_test_wheel.py --version 0.2.2 +wheel-test\Scripts\python -m pip install dist\cablexsec-0.2.3-py3-none-any.whl +wheel-test\Scripts\python release\smoke_test_wheel.py --version 0.2.3 ``` The wheel contains only the `cablexsec` package (with its bundled cable definitions) diff --git a/README.md b/README.md index a9599a4..90be06b 100644 --- a/README.md +++ b/README.md @@ -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.2`; interfaces are versioned and may change before `1.0.0`. +current release is `v0.2.3`; interfaces are versioned and may change before `1.0.0`. ## What CableXSec does @@ -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.2" +python -m pip install "cablexsec[fast] @ git+https://github.com/SMI-Lab-Inha/CableXSec.git@v0.2.3" ``` The `fast` extra adds `numba` for the compiled slip-stress and rainflow kernels; without it the @@ -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.2); +If you use CableXSec in academic work, please cite the software release (CableXSec 0.2.3); [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 diff --git a/doc/citing.rst b/doc/citing.rst index 6314efc..590fbfc 100644 --- a/doc/citing.rst +++ b/doc/citing.rst @@ -12,15 +12,15 @@ Software release ---------------- Seo, J. H. (2026). *CableXSec: Component-resolved local cross-section mechanics of dynamic -power cables* (version 0.2.2) [Computer software]. https://github.com/SMI-Lab-Inha/CableXSec +power cables* (version 0.2.3) [Computer software]. https://github.com/SMI-Lab-Inha/CableXSec .. code-block:: bibtex - @software{CableXSec_0_2_2, + @software{CableXSec_0_2_3, author = {Seo, Jae Hoon}, title = {{CableXSec}: Component-resolved local cross-section mechanics of dynamic power cables}, - version = {0.2.2}, + version = {0.2.3}, year = {2026}, url = {https://github.com/SMI-Lab-Inha/CableXSec}, license = {Apache-2.0} diff --git a/doc/index.rst b/doc/index.rst index b3409d8..b99a6a3 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -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.2`` is the current release. It is distributed as a source + CableXSec ``v0.2.3`` is the current release. It is distributed as a source repository and a pure-Python wheel on the `GitHub release page `_. Every comparison with published data, including the comparisons that do not meet their diff --git a/doc/installation.rst b/doc/installation.rst index 6462adf..3748c1e 100644 --- a/doc/installation.rst +++ b/doc/installation.rst @@ -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.2-py3-none-any.whl`` and ``SHA256SUMS.txt`` from the -`v0.2.2 release `_, compare +Download ``cablexsec-0.2.3-py3-none-any.whl`` and ``SHA256SUMS.txt`` from the +`v0.2.3 release `_, compare the checksum, and install the wheel with its optional extras: .. code-block:: powershell - 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]" + Get-FileHash cablexsec-0.2.3-py3-none-any.whl -Algorithm SHA256 + python -m pip install "cablexsec-0.2.3-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.2" + python -m pip install "cablexsec[fast] @ git+https://github.com/SMI-Lab-Inha/CableXSec.git@v0.2.3" or, for development, clone the repository and install it in editable mode (see :doc:`development`): diff --git a/doc/tutorials/04_contact_and_fretting.md b/doc/tutorials/04_contact_and_fretting.md index e92beb7..305402d 100644 --- a/doc/tutorials/04_contact_and_fretting.md +++ b/doc/tutorials/04_contact_and_fretting.md @@ -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.2 does not compute Ruiz parameters. +tangential stress. CableXSec 0.2.3 does not compute Ruiz parameters. ## 8. The SWT critical plane next to a crossing @@ -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.2 +(`SWTLifeConstants`). The SWT constants registered in CableXSec 0.2.3 (`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. diff --git a/pyproject.toml b/pyproject.toml index b8612bb..9e2057d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ build-backend = "setuptools.build_meta" [project] name = "cablexsec" -version = "0.2.2" +version = "0.2.3" description = "Component-resolved local cross-section mechanics and fatigue of dynamic power cables" readme = "README.md" requires-python = ">=3.11,<3.13" diff --git a/src/cablexsec/__init__.py b/src/cablexsec/__init__.py index 5842b31..cc75ece 100644 --- a/src/cablexsec/__init__.py +++ b/src/cablexsec/__init__.py @@ -342,7 +342,7 @@ WaveKinematicsWarning, ) -__version__ = "0.2.2" +__version__ = "0.2.3" from cablexsec.project import ( # noqa: E402 PROJECT_FORMAT_VERSION, From 56dc3582186774b4928a2307ac6dd6d4d2a8eab6 Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Wed, 2 Dec 2026 23:26:04 +0900 Subject: [PATCH 2/2] Release 0.2.3: release record, release date 2026-12-03 validation/RELEASE_0_2_3.md records the environments and the local gate results of the release: the Python 3.12 test suite (5155 tests), coverage 96.39 %, Ruff, mypy, the validation report on Python 3.11 and 3.12 (73 rows, unchanged from 0.2.2; the seven registered FAIL rows unchanged), the documentation build, the release-tree audit and the distribution checks. validation/README.md lists it. Signed-off-by: Jae Hoon Seo --- validation/README.md | 3 +- validation/RELEASE_0_2_3.md | 55 +++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 validation/RELEASE_0_2_3.md diff --git a/validation/README.md b/validation/README.md index 6a1bbf7..fe05ea6 100644 --- a/validation/README.md +++ b/validation/README.md @@ -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_2.md`](RELEASE_0_2_2.md) | Environment, test results and gate results for v0.2.2 | +| [`RELEASE_0_2_3.md`](RELEASE_0_2_3.md) | Environment, test results and gate results for v0.2.3 | +| [`RELEASE_0_2_2.md`](RELEASE_0_2_2.md) | The same record for the 0.2.2 release | | [`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 | diff --git a/validation/RELEASE_0_2_3.md b/validation/RELEASE_0_2_3.md new file mode 100644 index 0000000..a90bc48 --- /dev/null +++ b/validation/RELEASE_0_2_3.md @@ -0,0 +1,55 @@ + + +# CableXSec v0.2.3 release record + +This record lists what was built and tested for the v0.2.3 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.3` | +| 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.2 | the provenance record of the global analysis (`cablexsec.io.global_provenance`) and the wave-grid policy for the analysed line (`check_wave_kinematics`, `wave_grid_check`), which by default refuses a CableDyn run whose record shows the line outside the wave grid; reading FAST.Farm's CableDyn table (`.FarmCD.out`); the sea-state batch records each run's provenance and policy outcome; the two slowest tests build only the validation rows they check, and a report computes the SV11 predictions once. Mechanical, thermal, fatigue and contact results are unchanged; 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.2, 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.2, 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 on at most four worker processes on a machine that was also running other solver +jobs. + +| Gate | Result | +| --- | --- | +| Test suite, Python 3.12 (`python -m pytest -n 4`) | 5155 tests collected: 5152 passed, 3 skipped (the three `test_distributed_fast` tests that replace kernel functions and so run only without numba; the coverage pass with `NUMBA_DISABLE_JIT=1` runs them); exit status 0 | +| Line and branch coverage of `cablexsec`, Python 3.11 (`release/check_coverage.py -n 4`: whole suite, then the kernel tests with `NUMBA_DISABLE_JIT=1`) | 96.39 %; gate 95 % | +| Ruff lint and format check (`src`, `tests`, `examples`, `validation`, `release`, `doc`), Python 3.11 and 3.12 | clean | +| mypy, strict, package `cablexsec` (the CI configuration, Python 3.11 with NumPy 2.4.6) | no issues in 124 source files | +| Validation report (`validation/scripts/run_validation.py --check --jobs=4`, 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 1426 `analytical_sanity`, 105 `independent_method`, 63 `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.2, the validation table is unchanged: no row is added or removed, and no row changes +status or value. The taxonomy grows by the provenance and wave-grid tests (70 more +`analytical_sanity` tests) and the SV11 cache test (one more `full_scale` test). + +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.