Switch to get_axis_num from dimensions.index