evalf / nutils

The nutils project
http://www.nutils.org/
MIT License
88 stars 48 forks source link

fix picklability of sliced function array #834

Closed gertjanvanzwieten closed 9 months ago

gertjanvanzwieten commented 10 months ago

This PR changed the implementation of _takeslice such that it wraps evaluable.Range directly rather than a lambda function, which caused the resulting array to not be picklable. A unit test is added to safeguard against similar mistakes in future.