Skip to content
Snippets Groups Projects
Commit b52f340b authored by James Robinson's avatar James Robinson
Browse files

Small fix in configurable.py. 2017-09-15 16:56:06. (PowhegControl-00-03-02)

Former-commit-id: fde6785aae38f9770b8ed9498506e0e67def2ab2
parent e7718a78
No related branches found
No related tags found
No related merge requests found
......@@ -32,9 +32,8 @@ class Configurable(object):
# Retrieve default settings from registry overriding if requested
defaults = Registry().get_defaults(keyword)
if value == defaults["value"] and value is not None:
if keyword in ["ebeam1", "ebeam2"]:
continue
logger.warning("Unnecessarily setting parameter {} to {} which is its default value!".format(keyword, value))
if keyword not in ["ebeam1", "ebeam2"]:
logger.warning("Unnecessarily setting parameter {} to {} which is its default value!".format(keyword, value))
value = [value, defaults["value"]][value is None]
name = [name, defaults["name"]][name is None]
description = [description, defaults["description"]][description is None]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment