@@ -59,9 +59,9 @@ def post_transfer(
5959 source = _get_source (transferred_file , environment )
6060 if source :
6161 atlas_mrc = transferred_file .with_suffix (".mrc" )
62- transferred_atlas_name = _atlas_destination (
62+ transferred_atlas_jpg = _atlas_destination (
6363 environment , source , atlas_mrc , self ._token
64- ) / atlas_mrc .relative_to (source .parent )
64+ ) / atlas_mrc .relative_to (source .parent ). with_suffix ( ".jpg" )
6565
6666 with open (transferred_file , "rb" ) as atlas_xml :
6767 atlas_xml_data = xmltodict .parse (atlas_xml )
@@ -87,7 +87,7 @@ def post_transfer(
8787 dcg_data = {
8888 "experiment_type_id" : 44 , # Atlas
8989 "tag" : str (transferred_file .parent ),
90- "atlas" : str (transferred_atlas_name ).replace ("//" , "/" ),
90+ "atlas" : str (transferred_atlas_jpg ).replace ("//" , "/" ),
9191 "sample" : sample ,
9292 "atlas_pixel_size" : atlas_pixel_size ,
9393 }
@@ -101,5 +101,5 @@ def post_transfer(
101101 data = dcg_data ,
102102 )
103103 logger .info (
104- f"Registered data collection group for atlas { str (transferred_atlas_name )!r} "
104+ f"Registered data collection group for atlas { str (transferred_atlas_jpg )!r} "
105105 )
0 commit comments