Repository navigation
fix: a CableDyn section on a deck node reads that node's channels alone - #52
Merged
Merged
Conversation
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>
Owner
Author
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
read_cabledyn_sectionsread 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 usualOUTPUTSrequest, therefore could not be read.Ten4N21,CurvX4N21,CurvY4N21andTwist4N21at node 21 only. Section at node 21's arc length,curvature_source="components"CableSchemaError: ... needs CurvX4N<J> and CurvY4N<J> channels ... at nodes [22]10.0while node 21 lies at 9.999996 m (rounded deck section lengths)it lies 4e-06 m from deck node 21 (s = 9.999996000000001 m): a section at that arc length reads that node's channels aloneTwistchannel (a hang-off node)checks["torsion"]["material_twist"]saidnone (twist-free)Change
_deck_weights(arcs, element, arc)returns the deck nodes, with their weights, that give a section's node channels:(1 - w) a + w b, wherew = (s - s_e) / (s_{e+1} - s_e).CurvX/CurvY(components route),Ten(node tension source),TwistandTorq, both in the channel requirements and in the interpolation. The position-grid weights (elevation, positions route) are unchanged.Twistchannel does not change the curvature components. The reconstructed routes (tangent,positions) still need the twist at every section of a torsion line, as before.curvature_sourceparameter;doc/global_local_guide.md§2.1, which saidread_cabledyn_sectionsdoes not readCurvX/CurvY;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_torsionwith node 12'sTen,Curv,CurvX,CurvY,TwistandTorqremoved.-CurvY1N11,CurvX1N11,Ten1N11,Twist1N11andTorq1N11exactly, and equals the read of the full file.test_components_route_records_the_twist_where_it_is_written:Twist1N30andTorq1N30removed. The section at node 11 keeps its twist and torque; the one at node 30 has none, andchecks["torsion"]names only'upper'.No tolerance or band changed.
Gates
On a0eccbc:
NUMBA_NUM_THREADS=1(-n 3): 4881 passed, 3 skippedCABLEXSEC_DISABLE_NUMBA=1(-n 3): 4765 passed, 119 skippedpython -m mypy: no issues in 120 source files;ruff checkandruff format --checkonsrc tests examples validation release doc: clean--collect-onlyper marker: unchanged at 1248 / 77 / 59 (the new tests carry no marker); 4884 tests collected