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

Function nanmax

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

reductionFunction · 0.90

Tested by

no test coverage detected