@@ -80,10 +80,11 @@ localrules:
80
80
onstart :
81
81
print ("INFO: starting workflow" )
82
82
# Make sure some packages are initialized before we begin to avoid race conditions
83
- for pkg in ["dspeed" , "lgdo" , "matplotlib" ]:
84
- shell (execenv .execenv_pyexe (config , "python" ) + "-c 'import " + pkg + "'" )
83
+ if not workflow .touch :
84
+ for pkg in ["dspeed" , "lgdo" , "matplotlib" ]:
85
+ shell (execenv .execenv_pyexe (config , "python" ) + "-c 'import " + pkg + "'" )
85
86
86
- # Log parameter catalogs in validity files
87
+ # Log parameter catalogs in validity files
87
88
hit_par_cat_file = Path (utils .pars_path (config )) / "hit" / "validity.yaml"
88
89
if hit_par_cat_file .is_file ():
89
90
hit_par_cat_file .unlink ()
@@ -122,29 +123,11 @@ onstart:
122
123
123
124
124
125
onsuccess :
125
- from snakemake .report import auto_report
126
-
127
-
128
- rep_dir = f"{ log_path (config )} /report-{ datetime .strftime (datetime .utcnow (), '%Y%m%dT%H%M%SZ' )} "
129
- Path (rep_dir ).mkdir (parents = True , exist_ok = True )
130
- # auto_report(workflow.persistence.dag, f"{rep_dir}/report.html")
131
- auto_report (workflow .persistence .dag , report_plugin , report_settings )
132
-
133
- with open (os .path .join (rep_dir , "dag.txt" ), "w" ) as f :
134
- f .writelines (str (workflow .persistence .dag ))
135
- # shell(f"cat {rep_dir}/dag.txt | dot -Tpdf > {rep_dir}/dag.pdf")
136
-
137
- with open (f"{ rep_dir } /rg.txt" , "w" ) as f :
138
- f .writelines (str (workflow .persistence .dag .rule_dot ()))
139
- # shell(f"cat {rep_dir}/rg.txt | dot -Tpdf > {rep_dir}/rg.pdf")
140
-
141
- # remove .gen files
142
126
files = glob .glob ("*.gen" )
143
127
for file in files :
144
128
if os .path .isfile (file ):
145
129
os .remove (file )
146
130
147
- # remove filelists
148
131
files = glob .glob (os .path .join (utils .filelist_path (config ), "*" ))
149
132
for file in files :
150
133
if os .path .isfile (file ):
0 commit comments