Skip to content

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

Merged
SMI-Lab-Inha merged 1 commit into
devfrom
docs/riflex-chatzipetros
Nov 30, 2026
Merged

SMI-Lab-Inha merged 1 commit into
devfrom
docs/riflex-chatzipetros

Conversation

@SMI-Lab-Inha

Copy link
Copy Markdown
Owner

Summary

Two documentation-level changes.

1. read_riflex_ascii becomes read_ascii_columns (breaking)

The reader takes whitespace-separated columns by position (optional #, %, ! comment lines). It was never checked against output of the program it was named after, so it no longer carries that name:

Before After
cx.read_riflex_ascii(...) cx.read_ascii_columns(...)
cablexsec.io.riflex_reader cablexsec.io.ascii_columns_reader
tests/data/histories/synthetic_riflex.asc tests/data/histories/synthetic_columns.asc

Arguments, defaults and results are unchanged. README, CITATION.cff, RELEASE.md, ARCHITECTURE.md, the user guide, the local-analysis guide, file_formats.md, the glossary, how-to 10 and the provenance strings no longer name a program. The released 0.1.0 CHANGELOG entry is left as it was; the rename is recorded under [Unreleased].

2. Accuracy of the IEC single-core-equivalent ladder

local_analysis_guide.md (Section 2, "What CableXSec does not compute", and Section 7.3) now states that, against 2-D finite-element models at constant losses, Chatzipetros and Pilgrim (2018, IEEE Trans. Power Delivery 33(4), doi:10.1109/TPWRD.2017.2770321) found the IEC ladder reads a three-core cable's conductor temperature

  • up to 8 °C low for SL-type lead-sheathed cables (their Table I), and
  • 4.9 to 5.9 °C low for cables with Al or Cu foil screens (their Table II).

The ladder follows IEC and inherits this; the paper's modified geometric factors are not implemented.

Tests

  • Reader tests renamed (test_ascii_columns_reader_positional_columns, test_bad_ascii_columns, ...); same assertions.
  • Full suite passes locally (-n 7), as do ruff check, ruff format --check, mypy and sphinx-build -W.
  • Validation report taxonomy unchanged (renames only).

Checklist

  • pre-commit run --all-files passes (ruff check and format on the CI trees)
  • python -m pytest -q passes
  • python -m mypy passes
  • CHANGELOG.md updated under [Unreleased]
  • Documentation in doc/ updated
  • Every new constant or reference value states its source
  • Conventional Commit title
  • Commits are signed off

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>
@SMI-Lab-Inha

Copy link
Copy Markdown
Owner Author

@codex review

@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-30T02:35:22.455072Z 8868cf2 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.

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 CableXSec | 🛠️ Build #36252542 | 📁 Comparing 8868cf2 against latest (2af48a4)

  🔍 Preview build  

19 files changed · ± 19 modified

± Modified

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 8868cf2177

ℹ️ 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 eed5a27 into dev Nov 30, 2026
14 checks passed
@SMI-Lab-Inha
SMI-Lab-Inha deleted the docs/riflex-chatzipetros branch November 30, 2026 09:47
This was referenced Nov 30, 2026
SMI-Lab-Inha added a commit that referenced this pull request Nov 30, 2026
#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>
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