Closed j042 closed 1 month ago
The recent updates enhance the splinepy
library by streamlining the initialization process in the FFD
class and significantly improving the loading and exporting functionalities to support both 2D and 3D single-patch splines. Key safety improvements were made by replacing eval
with literal_eval
, along with enhanced validation for control points and knot vectors. Additionally, a new test case was introduced to ensure the robustness of the export functionality across various spline types.
Files | Change Summary |
---|---|
splinepy/helpme/ffd.py |
Simplified initialization of self.padding using a conditional expression for improved readability. |
splinepy/io/mfem.py |
Expanded loading/export capabilities to support 3D splines; updated docstrings, refactored code for safety, and enhanced validation. |
tests/io/test_mfem_export.py |
Added test_mfem_single_patch_export to validate MFEM export functionality for 2D and 3D spline objects. |
splinepy/_version.py |
Incremented version number from 0.1.1 to 0.1.2 , indicating a minor release with improvements. |
In the garden of code where splines twine,
A rabbit hops in, oh so fine!
With 2D and 3D now in sight,
Exporting splines, what a delight!
Tolerance set, our paths align,
With every change, the stars brightly shine! ✨🐇
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Overview
Bumps version to 0.1.2 with following fixes
Checklists
Summary by CodeRabbit
New Features
Bug Fixes
Tests
Chores