We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e59880f commit ab6d04bCopy full SHA for ab6d04b
cobaya/run.py
@@ -45,7 +45,12 @@ def run(info):
45
# END OF DEPRECATION BLOCK
46
# 1. Prepare output driver, if requested by defining an output_prefix
47
# GetDist needs to know the original sampler, so don't overwrite if minimizer
48
- which_sampler = list(info["sampler"])[0]
+ try:
49
+ which_sampler = list(info["sampler"])[0]
50
+ except (KeyError, TypeError):
51
+ raise LoggedError(
52
+ logger_run, "You need to specify a sampler using the 'sampler' key as e.g. "
53
+ "`sampler: {mcmc: None}.`")
54
infix = "minimize" if which_sampler == "minimize" else None
55
output = get_output(prefix=info.get(_output_prefix), resume=info.get(_resume),
56
force=info.get(_force), infix=infix)
0 commit comments