fixed save bug
@@ -579,10 +579,10 @@ class Window(QtGui.QMainWindow):
for i in range(n_channels):
cx = self.infos[i][0]['Width'] / 2
cy = self.infos[i][0]['Height'] / 2
- self.locs[i].x += cx
- self.locs[i].y += cy
+ out_locs = self.locs[i].copy()
+ out_locs.x += cx
+ out_locs.y += cy
info = self.infos[i] + [{'Generated by': 'Picasso Average'}]
- out_locs = self.locs[i]
out_path = os.path.splitext(self.locs_paths[i])[0] + '_avg.hdf5'
path = QtGui.QFileDialog.getSaveFileName(self, 'Save localizations', out_path, filter='*.hdf5')
