Closed j042 closed 3 months ago
The recent updates enhance the KnotVector
class by modifying the __array__
method to accept an additional, optional keyword argument. This change maintains existing functionality while preparing the method for potential future enhancements. Additionally, the pybind11
dependency has been updated to a new commit, ensuring the project benefits from the latest improvements and fixes from the library.
Files | Change Summary |
---|---|
src/py/py_knot_vector.cpp |
Modified the __array__ method in the KnotVector class to include an unused copy_ignored parameter. |
third_party/pybind11 |
Updated the subproject commit reference to a newer version, ensuring integration of the latest changes. |
🐰 In the code where knots entwine,
A change so slight, yet so divine.
With extra args, we leap and bound,
Enhancing flows where joy is found!
Let's hop with glee, our future's bright,
For every change brings pure delight! 🌼
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?
Thanks for the quick fix. Tests now work again. Looks good to me.
I also checked the examples, and they are still working as expected. So there is no impact there either.
Overview
Since numpy 2.0, a
copy
kwarg was added tonumpy.ndarray.__array__
. This PR adds**kwargs
to__array__
function. It is ignored, since we always return a copy.Addressed issues
Checklists
Summary by CodeRabbit
__array__
method in theKnotVector
class to accept additional keyword arguments, preparing for future enhancements.pybind11
dependency to a newer commit, potentially introducing bug fixes and performance improvements.