removed particle question in average as this can be done in render
@@ -233,18 +233,14 @@ class View(QtGui.QLabel):
self.set_pixmap(self._pixmap)
def save(self, path):
- merge_groups = QtGui.QMessageBox.question(self, 'Save', 'Merge groups into single particle?',
- QtGui.QMessageBox.Yes, QtGui.QMessageBox.No)
cx = self.info[0]['Width'] / 2
cy = self.info[0]['Height'] / 2
self.locs.x += cx
self.locs.y += cy
info = self.info + [{'Generated by': 'Picasso Average'}]
- if merge_groups == QtGui.QMessageBox.Yes:
- out_locs = lib.remove_from_rec(self.locs, 'group')
- else:
out_locs = self.locs
io.save_locs(path, out_locs, info)
+ self.window.status_bar.showMessage('File saved to {}.'.format(path))
def set_image(self, image):
cmap = np.uint8(np.round(255 * plt.get_cmap('magma')(np.arange(256))))
