ndsplines.from_file

ndsplines.from_file(file)

Create a NDSpline object from a NumPy archive containing the necessary attributes.

Parameters:

file (file-like object, string, or pathlib.Path) – The file to read. File-like objects must support the seek() and read() methods. Pickled files require that the file-like object support the readline() method as well.

Notes

Assumes knots are saved in order with names “knots_%d” where %d is the dimension of the input space.

See also

NDSpline.to_file