Skip to content

Commit 7ceb494

Browse files
committed
Ignore problematic metadata file when running estimate-freqs.R script
1 parent 3b8a0eb commit 7ceb494

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

autoprocess.py

+9-3
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,16 @@ def run_scripts(runs, indir, outdir, callback=None):
270270
try:
271271
subprocess.check_call(cmd)
272272
except subprocess.CalledProcessError:
273+
cmd.pop()
273274
if callback:
274-
callback("Error running estimate-freqs.R: {}, {}".format(constellation, run),
275-
level="ERROR")
276-
continue
275+
callback("Potentially an issue with the metadata file...Running again without the metadata file")
276+
try:
277+
subprocess.check_call(cmd)
278+
except:
279+
if callback:
280+
callback("Error running estimate-freqs.R: {}, {}".format(constellation, run),
281+
level="ERROR")
282+
continue
277283

278284
cmd = ['Rscript', 'scripts/make-barplots.R', '{}.json'.format(filename), '{}.barplot.pdf'.format(filename)]
279285
callback("Running '{}'".format(' '.join(cmd)))

0 commit comments

Comments
 (0)