@@ -40,13 +40,21 @@ def post_transfer(
4040
4141 if transferred_file .name == "Session.dm" :
4242 logger .info ("Tomography session metadata found" )
43- ensure_dcg_exists ("tomo" , metadata_source , environment , self ._token )
43+ ensure_dcg_exists (
44+ collection_type = "tomo" ,
45+ metadata_source = metadata_source ,
46+ environment = environment ,
47+ token = self ._token ,
48+ )
4449
4550 elif transferred_file .name == "SearchMap.xml" :
4651 logger .info ("Tomography session search map xml found" )
4752
4853 dcg_tag = ensure_dcg_exists (
49- "tomo" , metadata_source , environment , self ._token
54+ collection_type = "tomo" ,
55+ metadata_source = metadata_source ,
56+ environment = environment ,
57+ token = self ._token ,
5058 )
5159 with open (transferred_file , "r" ) as sm_xml :
5260 sm_data = xmltodict .parse (sm_xml .read ())
@@ -150,7 +158,10 @@ def post_transfer(
150158 elif transferred_file .name == "SearchMap.dm" :
151159 logger .info ("Tomography session search map dm found" )
152160 dcg_tag = ensure_dcg_exists (
153- "tomo" , metadata_source , environment , self ._token
161+ collection_type = "tomo" ,
162+ metadata_source = metadata_source ,
163+ environment = environment ,
164+ token = self ._token ,
154165 )
155166 with open (transferred_file , "r" ) as sm_xml :
156167 sm_data = xmltodict .parse (sm_xml .read ())
@@ -198,7 +209,10 @@ def post_transfer(
198209 elif transferred_file .name == "BatchPositionsList.xml" :
199210 logger .info ("Tomography session batch positions list found" )
200211 dcg_tag = ensure_dcg_exists (
201- "tomo" , metadata_source , environment , self ._token
212+ collection_type = "tomo" ,
213+ metadata_source = metadata_source ,
214+ environment = environment ,
215+ token = self ._token ,
202216 )
203217 with open (transferred_file ) as xml :
204218 for_parsing = xml .read ()
0 commit comments