simplify expression in prompts from file script
This commit is contained in:
parent
27c1b3b816
commit
69781031e7
|
@ -146,11 +146,7 @@ class Script(scripts.Script):
|
||||||
else:
|
else:
|
||||||
args = {"prompt": line}
|
args = {"prompt": line}
|
||||||
|
|
||||||
n_iter = args.get("n_iter", p.n_iter)
|
job_count += args.get("n_iter", p.n_iter)
|
||||||
if n_iter != 1:
|
|
||||||
job_count += n_iter
|
|
||||||
else:
|
|
||||||
job_count += 1
|
|
||||||
|
|
||||||
jobs.append(args)
|
jobs.append(args)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user