File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6969 docker container list -a
7070
7171 - name : Get ISPyB database
72- uses : actions/download-artifact@v6
72+ uses : actions/download-artifact@v7
7373 with :
7474 name : database
7575 path : database/
Original file line number Diff line number Diff line change 7878 - name : Build python package
7979 run : python3 -m build
8080 - name : Store built package artifact
81- uses : actions/upload-artifact@v5
81+ uses : actions/upload-artifact@v6
8282 with :
8383 name : package-distributions
8484 path : dist/
@@ -100,7 +100,7 @@ jobs:
100100
101101 steps :
102102 - name : Download all the dists
103- uses : actions/download-artifact@v6
103+ uses : actions/download-artifact@v7
104104 with :
105105 name : package-distributions
106106 path : dist/
@@ -123,7 +123,7 @@ jobs:
123123
124124 steps :
125125 - name : Download all the dists
126- uses : actions/download-artifact@v6
126+ uses : actions/download-artifact@v7
127127 with :
128128 name : package-distributions
129129 path : dist/
Original file line number Diff line number Diff line change 6060 mkdir database
6161 wget -t 3 --waitretry=20 https://github.com/DiamondLightSource/ispyb-database/releases/download/v${{ env.ISPYB_DATABASE_SCHEMA }}/ispyb-database-${{ env.ISPYB_DATABASE_SCHEMA }}.tar.gz -O database/ispyb-database.tar.gz
6262 - name : Store database artifact
63- uses : actions/upload-artifact@v5
63+ uses : actions/upload-artifact@v6
6464 with :
6565 name : database
6666 path : database/
Original file line number Diff line number Diff line change @@ -67,9 +67,9 @@ def ensure_dcg_exists(
6767
6868 if not session_file .is_file ():
6969 logger .warning (f"Cannot find session file { str (session_file )} " )
70- dcg_tag = (
71- str ( metadata_source ). replace ( f"/ { environment .visit } " , "" ). replace ( "//" , "/" )
72- )
70+ dcg_tag = "/" . join (
71+ [ part for part in metadata_source . parts if part != environment .visit ]
72+ ). replace ( "//" , "/" )
7373 dcg_data = {
7474 "experiment_type_id" : experiment_type_id ,
7575 "tag" : dcg_tag ,
@@ -97,9 +97,9 @@ def ensure_dcg_exists(
9797 f"Looking for atlas XML file in metadata directory { str ((source_visit_dir / partial_path ).parent )} "
9898 )
9999
100- dcg_tag = (
101- str ( metadata_source ). replace ( f"/ { environment .visit } " , "" ). replace ( "//" , "/" )
102- )
100+ dcg_tag = "/" . join (
101+ [ part for part in metadata_source . parts if part != environment .visit ]
102+ ). replace ( "//" , "/" )
103103
104104 for p in partial_path .split ("/" ):
105105 if p .startswith ("Sample" ):
Original file line number Diff line number Diff line change @@ -1148,16 +1148,18 @@ def _resize_intial_model(
11481148 logger .info (
11491149 f"Initial model rescaling finished with code { comp_proc .returncode } "
11501150 )
1151+ if comp_proc .returncode :
1152+ logger .error (
1153+ f"Resizing initial model { input_path } failed"
1154+ f"\n { comp_proc .stdout } \n { comp_proc .stderr } "
1155+ )
1156+ raise RuntimeError (f"Resizing initial model { input_path } failed" )
11511157 with mrcfile .open (output_path ) as rescaled_mrc :
11521158 rescaled_mrc .header .cella = (
11531159 downscaled_pixel_size ,
11541160 downscaled_pixel_size ,
11551161 downscaled_pixel_size ,
11561162 )
1157- if comp_proc .returncode :
1158- logger .error (
1159- f"Resizing initial model { input_path } failed \n { comp_proc .stdout } "
1160- )
11611163 return None
11621164
11631165
You can’t perform that action at this time.
0 commit comments