splinepy.utils.data.MultipatchData.as_scalar#

MultipatchData.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