splinepy.utils.data.SplineData.as_scalar#

SplineData.as_scalar(key, resolutions, default=None)[source]#

Return scalar value at given resolutions

Parameters:
  • key (str)

  • resolutions (list or tuple)

  • default (object) – Default is None and will return is key doesn’t exist

Returns:

value

Return type:

np.ndarray