# #check, if dataset already contains results. Otherwise load them...
# if not self.datastats.loadParticleData():
# self.show()
# answer = QtWidgets.QMessageBox.question(self, 'Warning', 'No (or inconsistent) spectra results found, please run import dialog.\nPress OK to import or cancel to set to empty.', QtWidgets.QMessageBox.Ok | QtWidgets.QMessageBox.Cancel)
self.parent.centerOnRamanIndex(self.currentSpectrumIndex,centerOn=centerOn,highlightContour=highlightContour)#TODO: is this reasonable to do in that way???