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

Function _nanmax_skip

dask/array/reductions.py:321–331  ·  view source on GitHub ↗
(x_chunk, axis, keepdims)

Source from the content-addressed store, hash-verified

319
320
321def _nanmax_skip(x_chunk, axis, keepdims):
322 if x_chunk.size > 0:
323 with warnings.catch_warnings():
324 warnings.filterwarnings(
325 "ignore", "All-NaN slice encountered", RuntimeWarning
326 )
327 return np.nanmax(x_chunk, axis=axis, keepdims=keepdims)
328 else:
329 return asarray_safe(
330 np.array([], dtype=x_chunk.dtype), like=meta_from_array(x_chunk)
331 )
332
333
334def mean_chunk(

Callers

nothing calls this directly

Calls 2

asarray_safeFunction · 0.90
meta_from_arrayFunction · 0.90

Tested by

no test coverage detected