From 6e968628150bad32a61dddf611a6831a54dd086f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rn=20K=C3=BCnsem=C3=B6ller?=
 <jkuensem@physik.uni-bielefeld.de>
Date: Mon, 12 Jun 2023 09:50:19 +0200
Subject: [PATCH] TMSS-1777: bugfix

---
 lib/station_coordinates.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/station_coordinates.py b/lib/station_coordinates.py
index 694def7..2d694b4 100644
--- a/lib/station_coordinates.py
+++ b/lib/station_coordinates.py
@@ -22,8 +22,8 @@ def parse_station_coordinates() -> dict:
             if line and line.startswith('PIC.Core.'):
                 key, value = line.split('=')
                 key = key.replace('PIC.Core.', '').replace('.phaseCenter', '').strip()
-                eval_value = literal_eval(value)
-                field_coords = {'coordinate_system': 'ITRF2005', 'epoch': '2017.5' if 'DE605' in key else '2015.5', 'x': eval_value[0], 'y': eval_value[1], 'z': eval_value[2]}  # 'coordinate_system': 'ITRF2005' is correct or is this 'WGS84'?!
+                eval_value = literal_eval(value.strip())
+                field_coords = {'coordinate_system': 'ITRF2005', 'epoch': '2017.5' if 'DE605' in key else '2015.5', 'x': eval_value[0], 'y': eval_value[1], 'z': eval_value[2], 'name': key}  # 'coordinate_system': 'ITRF2005' is correct or is this 'WGS84' or do we have to update the SIP library to support a newer standard?!
                 station_coordinates[key] = field_coords
     if not expected_comment_found:
         raise ValueError('File contents are missing an expected comment, indicating that special cases are no longer present in the coordinates file. Revise the code to reflect that.')
-- 
GitLab