File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 285285# Note that we only extend the following two methods, and then have it
286286# dispatch to package-local `reduced_indices` and `reduced_indices0`
287287# methods. This avoids a whole slew of ambiguities.
288- Base. reduced_indices (A:: AxisArray , region) = reduced_indices (axes (A), region)
289- Base. reduced_indices0 (A:: AxisArray , region) = reduced_indices0 (axes (A), region)
288+ if VERSION == v " 0.5.0"
289+ Base. reduced_dims (A:: AxisArray , region) = reduced_indices (axes (A), region)
290+ Base. reduced_dims (A:: AxisArray , region) = reduced_indices0 (axes (A), region)
291+ else
292+ Base. reduced_indices (A:: AxisArray , region) = reduced_indices (axes (A), region)
293+ Base. reduced_indices0 (A:: AxisArray , region) = reduced_indices0 (axes (A), region)
294+ end
290295
291296reduced_indices {N} (axs:: Tuple{Vararg{Axis,N}} , :: Tuple{} ) = axs
292297reduced_indices0 {N} (axs:: Tuple{Vararg{Axis,N}} , :: Tuple{} ) = axs
You can’t perform that action at this time.
0 commit comments