Possibly as a consequence of having removed the multi-index option, when running land_check() on different arrays which have the same dimensions, there is no guarantee the order in which dimensions are stacked is consistent. So I added sorted() when calling stack:
Possibly as a consequence of having removed the multi-index option, when running land_check() on different arrays which have the same dimensions, there is no guarantee the order in which dimensions are stacked is consistent. So I added sorted() when calling stack: