Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory block refactor #296

Merged
merged 19 commits into from
Sep 8, 2023

Conversation

sy-cui
Copy link
Contributor

@sy-cui sy-cui commented Sep 7, 2023

Refactor memory block implementation:

  • Add _map_system_properties_to_block_memory method for both Cosserat rod and rigid bodies memory blocks to avoid code repetition.
  • Slight modifications in make_block_memory_metadata function without change in functionality
  • Minor changes in function naming and docstrings

Test suites for memory blocks:

  • Add test cases for make_block_memory_metadata() and make_block_memory_periodic_boundary_metadata()
  • Add test cases for rigid-body memory block logic and implementation
  • Add test cases for Cosserat rod memory block logic and implementation (ring rod supported)

…n without changing behavior, and add docs, type hints, test cases
@sy-cui sy-cui added enhancement New feature or request prio:low Priority level: low refactor Refactor existing features labels Sep 7, 2023
@sy-cui sy-cui added this to the Version 0.3.2 milestone Sep 7, 2023
@sy-cui sy-cui self-assigned this Sep 7, 2023
@codecov-commenter
Copy link

Codecov Report

Patch coverage is 93.10% of modified lines.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Files Changed Coverage
elastica/memory_block/memory_block_rigid_body.py 91.66%
elastica/memory_block/memory_block_rod.py 92.72%
elastica/memory_block/memory_block_rod_base.py 100.00%

📢 Thoughts on this report? Let us know!.

Copy link
Contributor

@armantekinalp armantekinalp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice work!

@armantekinalp armantekinalp merged commit 4340ace into GazzolaLab:update-0.3.2 Sep 8, 2023
@sy-cui sy-cui deleted the memory_block_refactor branch October 5, 2023 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request prio:low Priority level: low refactor Refactor existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants