Skip to content
Snippets Groups Projects
Commit 44b2c105 authored by Lan Dam's avatar Lan Dam
Browse files

change info in gps and file information to use list_of_of_dir

parent 4d4e3151
No related branches found
No related tags found
1 merge request!122allow to select multi folder to load
......@@ -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
......
......@@ -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':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment