Skip to content
Snippets Groups Projects
Commit 5ffbb653 authored by Stefano Borini's avatar Stefano Borini
Browse files

Flake

parent a95aa5e1
No related branches found
No related tags found
1 merge request!155Added stricter controls over the returned values by the datasource.
...@@ -145,7 +145,7 @@ def _compute_layer_results(environment_data_values, ...@@ -145,7 +145,7 @@ def _compute_layer_results(environment_data_values,
if not isinstance(res, list): if not isinstance(res, list):
error_txt = ( error_txt = (
"The run method of data source {} must return a list." "The run method of data source {} must return a list."
" It returned instead {}. Fix the run() method to return" " It returned instead {}. Fix the run() method to return"
" the appropriate entity.".format( " the appropriate entity.".format(
factory.name, factory.name,
...@@ -197,7 +197,6 @@ def _compute_layer_results(environment_data_values, ...@@ -197,7 +197,6 @@ def _compute_layer_results(environment_data_values,
log.error(error_txt) log.error(error_txt)
raise RuntimeError(error_txt) raise RuntimeError(error_txt)
# At this point, the returned data values are unnamed. # At this point, the returned data values are unnamed.
# Add the names as specified by the user. # Add the names as specified by the user.
for dv, output_slot_info in zip(res, model.output_slot_info): for dv, output_slot_info in zip(res, model.output_slot_info):
......
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