[change] restructured comparison widget

This commit is contained in:
2017-08-31 09:49:09 +02:00
parent f4fc067f16
commit ba001fb53d
2 changed files with 112 additions and 56 deletions

View File

@@ -1231,12 +1231,15 @@ class MainWindow(QMainWindow):
def comparePicks(self):
if self.check4Comparison():
autopicks = excludeQualityClasses(self.getPicks('auto'), [4],
self._inputs['timeerrorsP'], self._inputs['timeerrorsS'])
manupicks = excludeQualityClasses(self.getPicks('manual'), [4],
self._inputs['timeerrorsP'], self._inputs['timeerrorsS'])
co = Comparison(auto=autopicks, manu=manupicks)
compare_dlg = ComparisonWidget(co, self)
comparisons = {}
for event in self.project.eventlist:
autopicks = excludeQualityClasses(event.getAutopicks(), [4],
self._inputs['timeerrorsP'], self._inputs['timeerrorsS'])
manupicks = excludeQualityClasses(event.getPicks(), [4],
self._inputs['timeerrorsP'], self._inputs['timeerrorsS'])
co = Comparison(auto=autopicks, manu=manupicks)
comparisons[event.pylot_id] = co
compare_dlg = ComparisonWidget(comparisons[self.get_current_event_name()], self)
compare_dlg.show()
def getPlotWidget(self):