Commit 0e85f53a authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Merge branch 'fix-check-params' into 'master'

[fix] Handle empty lists in check_parameters.

Closes #27

See merge request !44
parents 2f2b60b6 540672cc
Pipeline #46450 skipped
......@@ -329,7 +329,7 @@ def check_parameters_for_validity(parameters, parameter_description,
A list or tuple contatining the valid parameters.
A list or tuple containing the valid parameters.
......@@ -338,8 +338,8 @@ def check_parameters_for_validity(parameters, parameter_description,
if parameters is None:
# parameters are not specified, i.e., 'None' or empty lists
if not parameters:
# parameters are not specified, i.e., 'None' or empty lists
parameters = default_parameters if default_parameters is not None \
else valid_parameters
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment