Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error messages #391

Merged
merged 2 commits into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cobaya/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def lock_error(self):
"File %s is locked by another process, you are running "
"with MPI disabled but may have more than one process. "
"Make sure that you have mpi4py installed and working."
"Note that --test should not be used with MPI.")
"Note that --test should not be used with MPI.", self.lock_file)
if mpi.get_mpi():
import mpi4py # pylint: disable=import-outside-toplevel
else:
Expand Down
10 changes: 5 additions & 5 deletions cobaya/theories/camb/camb.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,13 +881,13 @@ def set(self, params_values_dict, state):
self._base_params = params
args.update(self._reduced_extra_args)
return self.camb.set_params(self._base_params.copy(), **args)
except self.camb.baseconfig.CAMBParamRangeError:
except self.camb.baseconfig.CAMBParamRangeError as e:
if self.stop_at_error:
raise LoggedError(self.log, "Out of bound parameters: %r",
params_values_dict)
raise LoggedError(self.log, "%s\nOut of bound parameters: %r",
e, params_values_dict)
else:
self.log.debug("Out of bounds parameters. "
"Assigning 0 likelihood and going on.")
self.log.debug("%s;\n Out of bounds parameters. "
"Assigning 0 likelihood and going on.", e)
except (self.camb.baseconfig.CAMBValueError, self.camb.baseconfig.CAMBError) as e:
if self.stop_at_error:
self.log.error(
Expand Down
Loading