ndsplines.NDSpline.to_file¶
- NDSpline.to_file(file, compress=True)¶
Save attributes of
NDSpline
object to binary file in NumPy.npz
format so that the object can be re-created.- Parameters:
file (file, str, or pathlib.Path) – File or filename to which the data is saved. If file is a file-object, then the filename is unchanged. If file is a string or Path, a
.npz
extension will be appended to the file name if it does not already have one.compress (bool, optional) – Whether to compress the archive of attributes. Optional, default is True.
Notes
Saves knots in order with name “knots_%d” where %d is the dimension of the input space.
See also