displaying individual picks and removing unwanted ones from list
@@ -365,7 +365,6 @@ class InfoDialog(QtGui.QDialog):
plt.legend(loc='best')
plt.show()
-
class ToolsSettingsDialog(QtGui.QDialog):
def __init__(self, window):
@@ -1035,7 +1034,10 @@ class View(QtGui.QLabel):
index_blocks = self.get_index_blocks(channel)
n_locs = []
rmsd = []
+ if self._picks:
+ removelist = []
for i, pick in enumerate(self._picks):
+ pickindex = 0
x, y = pick
block_locs = postprocess.get_block_locs_at(x, y, index_blocks)
pick_locs = lib.locs_at(x, y, block_locs, r)
@@ -1049,6 +1051,18 @@ class View(QtGui.QLabel):
ax.set_ylabel('Y [Px]')
plt.axis('equal')
plt.show()
+ segmentation, ok = QtGui.QInputDialog.getInt(self, 'Use Pick?', 'No:', i)
+
+ if ok:
+ print('Accepted')
+ plt.close()
+ else:
+ print('Discard')
+ removelist.append(pick)
+ plt.close()
+ for pick in removelist:
+ self._picks.remove(pick)
+ self.update_scene()
