_utils._extrema, out_dtype, default, pass_positions=True
)
extrema_lbl = {k: extrema_lbl[k] for k in extrema_lbl.dtype.names}
for pos_key in ["min_pos", "max_pos"]:
pos_1d = extrema_lbl[pos_key]
if not pos_1d.ndim:
After Change
)
extrema_lbl = collections.OrderedDict([
(k, extrema_lbl[k]) for k in type_mapping.keys()
])
for pos_key in ["min_pos", "max_pos"]:
pos_1d = extrema_lbl[pos_key]