not implemented for saving pickprops with filter
@@ -348,6 +348,7 @@ class Window(QtGui.QMainWindow):
self.filter_log[field] = [xmin, xmax]
def save_file_dialog(self):
+ if 'x' in self.locs.dtype.names: # Saving only for locs
base, ext = os.path.splitext(self.locs_path)
out_path = base + "_filter.hdf5"
path = QtGui.QFileDialog.getSaveFileName(
@@ -358,6 +359,10 @@ class Window(QtGui.QMainWindow):
filter_info.update({"Generated by": "Picasso Filter"})
info = self.info + [filter_info]
io.save_locs(path, self.locs, info)
+ else:
+ raise NotImplementedError(
+ "Saving only implmented for locs."
+ )
def wheelEvent(self, event):
new_value = self.vertical_scrollbar.value() - 0.1 * event.delta()
