(x_chunk, axis, keepdims)
| 319 | |
| 320 | |
| 321 | def _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 | |
| 334 | def mean_chunk( |
nothing calls this directly
no test coverage detected