From 393413d6fc3404bb1bf16d53c3a674b5c77a54dc Mon Sep 17 00:00:00 2001 From: Marcel Date: Thu, 2 Aug 2018 15:42:34 +0200 Subject: [PATCH] [bugfix] closes #215 --- pylot/core/util/array_map.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/pylot/core/util/array_map.py b/pylot/core/util/array_map.py index 85fb59a9..7a428006 100644 --- a/pylot/core/util/array_map.py +++ b/pylot/core/util/array_map.py @@ -73,15 +73,11 @@ class Array_map(QtGui.QWidget): if pickDlg.exec_(): pyl_mw.setDirty(True) pyl_mw.update_status('picks accepted ({0})'.format(station)) - replot = pyl_mw.get_current_event().setPick(station, pickDlg.getPicks()) + pyl_mw.addPicks(station, pickDlg.getPicks(picktype='manual'), type='manual') + pyl_mw.addPicks(station, pickDlg.getPicks(picktype='auto'), type='auto') self._refresh_drawings() - if replot: - pyl_mw.plotWaveformData() - pyl_mw.drawPicks() - pyl_mw.draw() - else: - pyl_mw.drawPicks(station) - pyl_mw.draw() + pyl_mw.drawPicks(station) + pyl_mw.draw() else: pyl_mw.update_status('picks discarded ({0})'.format(station)) except Exception as e: