BUG: fix resampling when target_shape is not a tuple