From 14048d6784e1aae532e6a367db86fc5b61600958 Mon Sep 17 00:00:00 2001 From: Sebastianw Wehling-Benatelli Date: Tue, 29 Mar 2016 11:00:31 +0200 Subject: [PATCH] [edit] reformat string only if certain prefix is found --- QtPyLoT.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/QtPyLoT.py b/QtPyLoT.py index 25ba561f..f0096cc2 100755 --- a/QtPyLoT.py +++ b/QtPyLoT.py @@ -747,7 +747,10 @@ class MainWindow(QMainWindow): phase['lpp'] = lpp phase['spe'] = spe try: - phase['picker'] = str(pick.method_id).split('/')[1] + picker = str(pick.method_id) + if picker.startswith('smi:local/'): + picker = picker.split('smi:local/')[1] + phase['picker'] = picker except IndexError: pass