Commit 2c52f4da authored by AUTOMATIC's avatar AUTOMATIC

fix broken samplers in XY plot

parent e6e8cabe
......@@ -259,6 +259,7 @@ class Script(scripts.Script):
# Confirm options are valid before starting
if opt.label == "Sampler":
samplers_dict = build_samplers_dict(p)
for sampler_val in valslist:
if sampler_val.lower() not in samplers_dict.keys():
raise RuntimeError(f"Unknown sampler: {sampler_val}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment