Skip to content

Conversation

@samkirkham
Copy link
Contributor

@samkirkham samkirkham commented Apr 23, 2025

workflow.md

  • SystemSimulator called as an instance, but no instance has been created - assign as sim = SystemSimulator().
  • corrected typo in dampin() to dampen()
  • defined final_time=10 prior to being passed to add_forcing_to()
  • changed from elastica.connections import FixedJoint to from elastica.joint import FixedJoint
  • fixed missing import from collections import defaultdict

examples/MuscularSnake/post_processing.py

  • Ensure set_xdata receives a sequence

Summary of changes
- `SystemSimulator` called as an instance, but no instance has been created - assign as `sim`.
- corrected typo in function `dampin` to `dampen`
- defined `final_time` prior to use in `add_forcing_to`
- changed `from elastica.connections import FixedJoint` to `from elastica.joint import FixedJoint`
- fixed missing import of `defaultdict`
@samkirkham samkirkham changed the title Fixed errors in workflow.md example code Fixed errors in workflow.md example code [ci skip] Apr 23, 2025
Fixed RuntimeError caused by passing a scalar to `Line2D.set_xdata()` in `plot_video_with_surface()`

Issue:
- `com[0]` was being passed as a scalar, but matplotlib expects a sequence.

Fix:
- wrapped `com[0]` and `com[1]` in lists to ensure they are passed as sequences.
@samkirkham samkirkham changed the title Fixed errors in workflow.md example code [ci skip] Fixed errors in workflow.md example code [ci skip] and bug fix in MuscularSnake example Apr 23, 2025
@skim0119 skim0119 self-assigned this May 6, 2025
@skim0119 skim0119 added the documentation Improvements or additions to documentation label May 6, 2025
@skim0119 skim0119 changed the base branch from master to update-0.3.3 May 6, 2025 21:24
@skim0119
Copy link
Collaborator

skim0119 commented May 6, 2025

@samkirkham Thank you for your contributions. We'll review and merge your changes in the upcoming release.

@skim0119 skim0119 merged commit 89c13f3 into GazzolaLab:update-0.3.3 May 7, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants