MCPcopy Create free account
hub / github.com/dask/dask / nanmax

Function nanmax

dask/array/reductions.py:299–315  ·  view source on GitHub ↗
(a, axis=None, keepdims=False, split_every=None, out=None)

Source from the content-addressed store, hash-verified

297
298@derived_from(np)
299def nanmax(a, axis=None, keepdims=False, split_every=None, out=None):
300 if np.isnan(a.size):
301 raise ValueError(f"Arrays chunk sizes are unknown. {unknown_chunk_message}")
302 if a.size == 0:
303 raise ValueError(
304 "zero-size array to reduction operation fmax which has no identity"
305 )
306 return reduction(
307 a,
308 _nanmax_skip,
309 _nanmax_skip,
310 axis=axis,
311 keepdims=keepdims,
312 dtype=a.dtype,
313 split_every=split_every,
314 out=out,
315 )
316
317
318def _nanmax_skip(x_chunk, axis, keepdims):

Callers

nothing calls this directly

Calls 1

reductionFunction · 0.90

Tested by

no test coverage detected