Skip to content

Commit

Permalink
Fix constraint bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Bachibouzouk committed Feb 3, 2023
1 parent b5f6c0c commit 777621b
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions src/multi_vector_simulator/utils/__init__.py
Expand Up @@ -354,15 +354,27 @@ def compare_input_parameters_with_reference(
)
elif set_default is True:

main_parameters[mp][k][sp] = {
VALUE: PARAMETERS_DOC.get_doc_default(sp),
UNIT: PARAMETERS_DOC.get_doc_unit(sp),
}
logging.warning(
f"You are not providing a value for the parameter '{sp}' of asset '{k}' in asset group '{mp}'"
+ f"This parameter is then set to it's default value ({PARAMETERS_DOC.get_doc_default(sp)}).\n"
+ PARAMETERS_DOC.where_to_find_param_documentation
)
if k == "non-asset":
main_parameters[mp][sp] = {
VALUE: PARAMETERS_DOC.get_doc_default(sp),
UNIT: PARAMETERS_DOC.get_doc_unit(sp),
}
logging.warning(
f"You are not providing a value for the parameter '{sp}' in parameter group '{mp}'"
+ f"This parameter is then set to it's default value ({PARAMETERS_DOC.get_doc_default(sp)}).\n"
+ PARAMETERS_DOC.where_to_find_param_documentation
)
else:
main_parameters[mp][k][sp] = {
VALUE: PARAMETERS_DOC.get_doc_default(sp),
UNIT: PARAMETERS_DOC.get_doc_unit(sp),
}

logging.warning(
f"You are not providing a value for the parameter '{sp}' of asset '{k}' in asset group '{mp}'"
+ f"This parameter is then set to it's default value ({PARAMETERS_DOC.get_doc_default(sp)}).\n"
+ PARAMETERS_DOC.where_to_find_param_documentation
)
else:
# the sub parameter is not provided but is required --> missing
param_list = missing_parameters.get(mp, [])
Expand Down

0 comments on commit 777621b

Please sign in to comment.