#check, if dataset already contains results. Otherwise load them...
ifnotself.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)
# #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)