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 284
284
# Note that we only extend the following two methods, and then have it
285
285
# dispatch to package-local `reduced_indices` and `reduced_indices0`
286
286
# methods. This avoids a whole slew of ambiguities.
287
- Base. reduced_indices (A:: AxisArray , region) = reduced_indices (axes (A), region)
288
- Base. reduced_indices0 (A:: AxisArray , region) = reduced_indices0 (axes (A), region)
287
+ if VERSION == v " 0.5.0"
288
+ Base. reduced_dims (A:: AxisArray , region) = reduced_indices (axes (A), region)
289
+ Base. reduced_dims0 (A:: AxisArray , region) = reduced_indices0 (axes (A), region)
290
+ else
291
+ Base. reduced_indices (A:: AxisArray , region) = reduced_indices (axes (A), region)
292
+ Base. reduced_indices0 (A:: AxisArray , region) = reduced_indices0 (axes (A), region)
293
+ end
289
294
290
295
reduced_indices {N} (axs:: Tuple{Vararg{Axis,N}} , :: Tuple{} ) = axs
291
296
reduced_indices0 {N} (axs:: Tuple{Vararg{Axis,N}} , :: Tuple{} ) = axs
You can’t perform that action at this time.
0 commit comments