splinebox.spline_curves.HermiteSpline.
from_json#
- classmethod HermiteSpline.from_json(path)#
Constructs a spline from a json file that was saved using
splinebox.spline_curves.Spline.to_json().- Parameters:
- pathstr or pathlib.Path
Path to the json file.
Examples
>>> splinebox.Spline.from_json(path_to_single_spline_json) splinebox.spline_curves.Spline(M=3, basis_function=splinebox.basis_functions.B1(), closed=True, control_points=np.array([[0.8, 1.2], [0.7, 1.5], [1.1, 0.3]]))