get_top_layer_index#

jdaviz.utils.get_top_layer_index(viewer)[source]#

Get index of the top visible image layer in a viewer. This is because when blinked, first layer might not be top visible layer.