def get_mask_indices(path):
    raster = tiff_to_array(path)
    indices = []
    it = np.nditer(raster, flags=['multi_index'])
    while not it.finished:
        if it[0] == 1:
            r, c = it.multi_index
            indices.append((r, c))
        it.iternext()
    return indices
Calls show() of the top widget.
dataset/ETHPy150Open notthatbreezy/nyc-taxi-spark-ml/python/geo_vars.py/get_mask_indices--crossover with--dataset/ETHPy150Open thesamet/webilder/src/webilder/uitricks.py/UITricks.show