tataratat / splinepy

Library for prototyping spline geometries of arbitrary dimensions and degrees, and IGA
https://tataratat.github.io/splinepy
Other
47 stars 13 forks source link

helpers use weakref #350

Closed j042 closed 10 months ago

j042 commented 10 months ago

Overview

to avoid circular reference, we keep weakref of the helpee within helpers. See tataratat/gustaf#185. Turns out, keeping everything weakref doesn't allow "chained"-one-line uses. So, we will just create helpers that don't have states on the fly. Ones that have states will use weakref - they are okay, since we won't use them in "chained"-one-lines.

Addressed issues