From 44b2c105dea25e79603f31fa6012b57a53895974 Mon Sep 17 00:00:00 2001
From: Lan <ldam@passcal.nmt.edu>
Date: Wed, 10 May 2023 13:08:26 -0600
Subject: [PATCH] change info in gps and file information to use list_of_of_dir

---
 .../view/file_information/get_file_information.py          | 7 +++++--
 .../view/plotting/gps_plot/extract_gps_data.py             | 2 +-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/sohstationviewer/view/file_information/get_file_information.py b/sohstationviewer/view/file_information/get_file_information.py
index 5d82e70b1..96fbac28b 100644
--- a/sohstationviewer/view/file_information/get_file_information.py
+++ b/sohstationviewer/view/file_information/get_file_information.py
@@ -28,8 +28,11 @@ def extract_data_set_info(data_obj: Union[DataTypeModel, RT130, MSeed],
     """
 
     data_set_info = {}
-    sources_read = data_obj.dir
-    data_set_info['Sources Read'] = sources_read.name
+    folders = (data_obj.list_of_rt130_paths
+               if data_obj.list_of_dir == [''] else data_obj.list_of_dir)
+
+    sources_read = ', '.join([dir.name for dir in folders])
+    data_set_info['Sources Read'] = sources_read
 
     data_type = data_obj.data_type
     data_set_info['Data Type'] = data_type
diff --git a/sohstationviewer/view/plotting/gps_plot/extract_gps_data.py b/sohstationviewer/view/plotting/gps_plot/extract_gps_data.py
index 35f04bcd3..cd23e0b10 100644
--- a/sohstationviewer/view/plotting/gps_plot/extract_gps_data.py
+++ b/sohstationviewer/view/plotting/gps_plot/extract_gps_data.py
@@ -434,7 +434,7 @@ def gps_data_rt130(data_obj: RT130) -> List[GPSPoint]:
 
 @extract_gps_data.register(MSeed)
 def gps_data_mseed(data_obj: MSeed) -> List[GPSPoint]:
-    data_type = detect_data_type([data_obj.dir])
+    data_type = detect_data_type(data_obj.list_of_dir)
     if data_type == 'Q330':
         return extract_gps_data_q330(data_obj)
     elif data_type == 'Centaur' or data_type == 'Pegasus':
-- 
GitLab