Skip to content

fix: a CableDyn section on a deck node reads that node's channels alone - #52

Merged
SMI-Lab-Inha merged 1 commit into
devfrom
fix/cabledyn-section-on-node
Nov 20, 2026
Merged

SMI-Lab-Inha merged 1 commit into
devfrom
fix/cabledyn-section-on-node

Conversation

@SMI-Lab-Inha

@SMI-Lab-Inha SMI-Lab-Inha commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Summary

read_cabledyn_sections read every node channel of a section linearly between the two nodes of the section's element, and required both nodes. A station that a deck writes at a single node, which is the usual OUTPUTS request, therefore could not be read.

Input Before Now
Coupled run that writes Ten4N21, CurvX4N21, CurvY4N21 and Twist4N21 at node 21 only. Section at node 21's arc length, curvature_source="components" CableSchemaError: ... needs CurvX4N<J> and CurvY4N<J> channels ... at nodes [22] node 21's channels, bit for bit
The same, with the section given as 10.0 while node 21 lies at 9.999996 m (rounded deck section lengths) the same error the same error, which now adds: it lies 4e-06 m from deck node 21 (s = 9.999996000000001 m): a section at that arc length reads that node's channels alone
Components route; one section at a node that writes no Twist channel (a hang-off node) the twist of every section was dropped, and checks["torsion"]["material_twist"] said none (twist-free) the twist and torque are kept wherever they are written, and the check names the sections that have them

Change

  • _deck_weights(arcs, element, arc) returns the deck nodes, with their weights, that give a section's node channels:
    • a section whose arc length equals a node's arc length takes that node alone, with weight 1;
    • any other section takes the two nodes of its element, with the same arithmetic as before: (1 - w) a + w b, where w = (s - s_e) / (s_{e+1} - s_e).
  • Every node channel goes through these weights: CurvX/CurvY (components route), Ten (node tension source), Twist and Torq, both in the channel requirements and in the interpolation. The position-grid weights (elevation, positions route) are unchanged.
  • On the components route the twist and torque are decided per section. CableDyn's section axes already carry the twist, so a missing Twist channel does not change the curvature components. The reconstructed routes (tangent, positions) still need the twist at every section of a torsion line, as before.
  • The error for a section that misses a node channel names the nearest node when the section lies within 1e-3 of an element length of it.
  • Docs:
    • module notes and the curvature_source parameter;
    • doc/global_local_guide.md §2.1, which said read_cabledyn_sections does not read CurvX/CurvY;
    • §7, which still listed the hang-off roll as open.

Where both nodes are written, the values are unchanged. A section on a node used to add 0 × (next node), so only the sign of an exact zero can differ.

Tests

In tests/test_cabledyn_outputs.py, both fail without the fix:

  • test_components_section_on_a_deck_node_reads_that_node_alone: vu_torsion with node 12's Ten, Curv, CurvX, CurvY, Twist and Torq removed.
    • A section at node 11 reads -CurvY1N11, CurvX1N11, Ten1N11, Twist1N11 and Torq1N11 exactly, and equals the read of the full file.
    • A section 1e-6 m off the node is refused, with the node hint.
  • test_components_route_records_the_twist_where_it_is_written: Twist1N30 and Torq1N30 removed. The section at node 11 keeps its twist and torque; the one at node 30 has none, and checks["torsion"] names only 'upper'.

No tolerance or band changed.

Gates

On a0eccbc:

  • full suite with NUMBA_NUM_THREADS=1 (-n 3): 4881 passed, 3 skipped
  • full suite with CABLEXSEC_DISABLE_NUMBA=1 (-n 3): 4765 passed, 119 skipped
  • python -m mypy: no issues in 120 source files; ruff check and ruff format --check on src tests examples validation release doc: clean
  • taxonomy from --collect-only per marker: unchanged at 1248 / 77 / 59 (the new tests carry no marker); 4884 tests collected
  • both new tests fail on dev 49050a7

read_cabledyn_sections took every node channel of a section (CurvX/CurvY
on the components route, Ten, Twist, Torq) linearly between the two nodes
of its element, and required both. A station written at one node, the
usual OUTPUTS request, could not be read: a section at the arc length of
deck node 21 asked for CurvX/CurvY at node 22 too. A section whose arc
length equals a deck node's now reads that node alone; any other section
is linear between its two nodes as before, with the same arithmetic, and
an error for a section a few micrometres off a node (a rounded arc
length) names the node and its arc length.

On the components route CableDyn's section axes already carry the twist,
so its Twist and Torq histories are now kept at every section whose nodes
write them. Before, one section without Twist channels (a hang-off node)
dropped the twist of all of them, and checks["torsion"] called the read
twist-free. The reconstructed routes still need the twist at every
section of a torsion line.

The global-local guide no longer says that read_cabledyn_sections does
not read CurvX/CurvY, nor lists the hang-off roll as open.

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 20, 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-20T09:58:21.432280Z a0eccbc 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 #36038087 | 📁 Comparing a0eccbc against latest (240bf9c)

  🔍 Preview build  

24 files changed · ± 24 modified

± Modified

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: a0eccbc8df

ℹ️ 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 1a595af into dev Nov 20, 2026
14 checks passed
@SMI-Lab-Inha
SMI-Lab-Inha deleted the fix/cabledyn-section-on-node branch November 20, 2026 11:07
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