MCPcopy Create free account
hub / github.com/numpy/numpy / _extremum_fill_value

Function _extremum_fill_value

numpy/ma/core.py:285–296  ·  view source on GitHub ↗
(obj, extremum, extremum_name)

Source from the content-addressed store, hash-verified

283
284
285def _extremum_fill_value(obj, extremum, extremum_name):
286
287 def _scalar_fill_value(dtype):
288 try:
289 return extremum[dtype]
290 except KeyError as e:
291 raise TypeError(
292 f"Unsuitable type {dtype} for calculating {extremum_name}."
293 ) from None
294
295 dtype = _get_dtype_of(obj)
296 return _recursive_fill_value(dtype, _scalar_fill_value)
297
298
299def minimum_fill_value(obj):

Callers 2

minimum_fill_valueFunction · 0.85
maximum_fill_valueFunction · 0.85

Calls 2

_get_dtype_ofFunction · 0.85
_recursive_fill_valueFunction · 0.85

Tested by

no test coverage detected