def _on_add_data(self, message):
        self.invalidate()
        idx = self.data_index(len(self.data_collection) - 1)
        self.new_item.emit(idx)
dataset/ETHPy150Open glue-viz/glue/glue/core/qt/data_collection_model.py/DataCollectionModel._on_add_data/original