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)
@@ -86,6 +86,7 @@ class SampleView(QtWidgets.QGraphicsView):
self.setMinimumSize(600,600)
self.darkenPixmap=False
self.microscopeMode=None
self.coordTestMode=False
deftakeScreenshot(self):
#TODO:
...
...
@@ -210,8 +211,14 @@ class SampleView(QtWidgets.QGraphicsView):
defopen(self,fname):
self.saveDataSet()
ifself.datasetisnotNone:#####TODO: properly close and delete all widget instances for avoiding that data from a currently opened dataset is saved into the new...
@@ -545,3 +556,18 @@ class SampleView(QtWidgets.QGraphicsView):
self.scene().removeItem(item)
self.ramanscanitems=[]
defcheckCoords(self):
ifnotos.path.exists(self.dataset.getImageName):
QtWidgets.QMessageBox.about(self,'No Fullimage found','Optical scan was not complete.\nPlease acquire fullimage first with newly defined border points.')
else:
self.coordTestMode=True
QtWidgets.QMessageBox.about(self,'Check Coordinate System','Microscope is moving to 5 positions.\nFirst, only x and y are moved, z only if x,y positions are confirmed')