@@ -128,15 +128,12 @@ def mt_type_download(file_type):
128
128
sys .stderr .write ("Concatenating manifests\n " )
129
129
sys .stderr .flush ()
130
130
manifest_list = args .manifest .split ("," )
131
- manifest_concat = pd . DataFrame ()
131
+ manifest_df_list = []
132
132
for manifest in manifest_list :
133
133
sys .stderr .write ("Processing " + manifest + "\n " )
134
- current = pd .read_csv (manifest , sep = None )
135
- if manifest_concat .empty :
136
- manifest_concat = current .copy ()
137
- else :
138
- manifest_concat = manifest_concat .append (current , ignore_index = True )
134
+ manifest_df_list .append (pd .read_csv (manifest , sep = None ))
139
135
# In the event that s3_path is empty, replace with str to trigger later sbg download
136
+ manifest_concat = pd .concat (manifest_df_list , ignore_index = True )
140
137
manifest_concat .s3_path = manifest_concat .s3_path .fillna ('None' )
141
138
file_types = args .fts .split ("," )
142
139
# subset concatenated manifests
@@ -185,7 +182,7 @@ def mt_type_download(file_type):
185
182
key_dict [key ]['session' ] = boto3 .Session (profile_name = key )
186
183
key_dict [key ]['dl_client' ] = key_dict [key ]['session' ].client ("s3" , config = client_config )
187
184
else :
188
- key_dict [key ]['manifest' ] = key_dict [key ]['manifest' ]. append ( selected [selected ['s3_path' ].str .startswith (bucket )], ignore_index = True )
185
+ key_dict [key ]['manifest' ] = pd . concat ([ key_dict [key ]['manifest' ], selected [selected ['s3_path' ].str .startswith (bucket )] ], ignore_index = True )
189
186
if args .sbg_profile is not None :
190
187
check = 1
191
188
config = sbg .Config (profile = args .sbg_profile )
0 commit comments