Documentation failed due to change in the way the default parameter for poly_degree of from_degree() is set
The documentation, specifically the examples, contains the following line:
fx_interp = mp.interpolate(fx, spatial_dimension=1, poly_degree=4)
which after MR !64 (merged) will now fail because the signature for the interpolate()
function is:
def interpolate(fct, spatial_dimension, poly_degree, lp_degree=None):
The function still relies on the mechanism that replace lp_degree
if it is None
with the default value.
Instead, the default value stored in minterpy.global_settings.DEFAULT_LP_DEG
should be used directly.
PS: It's a good idea to revisit and try to resolve Issue #91 (closed) to catch this kind of problems during development before merging.