Skip to content

Knot theory: compute_additional_segment bug - #506

Closed
zzzzzbk wants to merge 1 commit into
GazzolaLab:update-v1from
zzzzzbk:Fix
Closed

Knot theory: compute_additional_segment bug#506
zzzzzbk wants to merge 1 commit into
GazzolaLab:update-v1from
zzzzzbk:Fix

Conversation

@zzzzzbk

@zzzzzbk zzzzzbk commented Oct 9, 2025

Copy link
Copy Markdown
Contributor

The direction_of_rod_end and direction_of_rod_begin are not properly updated by timestep. All first_point/last_point are calculated based on the directions of the final timestep due to it.

@skim0119

skim0119 commented Oct 9, 2025

Copy link
Copy Markdown
Collaborator

@zzzzzbk Hi -- Thank you for your contribution.

It seems like you are just changing the order of the loop and the branching. Could you explain more detail on what you are trying to fix?

Also, you are branching (if/else) at every iteration loop, which doesn't look efficient. We deliberately run loop inside the if/else statements for numba. Please revise the code, be more clear on what the bug is, provide reproducable code, and make a PR again. If you want to discuss, feel free to add your problem on issue.

@skim0119 skim0119 closed this Oct 9, 2025
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.

2 participants