From 6a0c1dda9d7096fc0d6ccc316de3ca9052b354bd Mon Sep 17 00:00:00 2001 From: Darius Arnold Date: Fri, 7 Dec 2018 09:33:02 +0100 Subject: [PATCH] [Bugfix]: Fix plot title in TuneAutopicker, partial fix of #266 For some reason the network.station.location.channel string wasn't split. --- pylot/core/util/widgets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index b35de6ac..05571d50 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -3435,8 +3435,9 @@ class TuneAutopicker(QWidget): return self.load_wf_data() try: - network, station, location, channel = self.get_current_station_id() + network, station, location, channel = self.get_current_station_id().split(".") except ValueError as e: + # not enough values to unpack, initialize default values vmsg = '{0}'.format(e) print(vmsg) station = self.get_current_station()