Commit c1b53f31 authored by Klaus Wölfel's avatar Klaus Wölfel

analysis: call operation script with additional parameter for data product variation

this enabes support for resolution as parameter for resampling script
parent f8e60d35
...@@ -22,6 +22,10 @@ for analysis_line in context.objectValues(portal_type="Data Analysis Line"): ...@@ -22,6 +22,10 @@ for analysis_line in context.objectValues(portal_type="Data Analysis Line"):
progress_indicator = analysis_line.getAggregateProgressIndicatorValue() progress_indicator = analysis_line.getAggregateProgressIndicatorValue()
if progress_indicator is not None: if progress_indicator is not None:
parameter_dict["%s_progress_indicator" %reference] = progress_indicator parameter_dict["%s_progress_indicator" %reference] = progress_indicator
for base_category in analysis_line.getVariationRangeBaseCategoryList():
parameter_dict["%s_%s" %(reference, base_category)] = \
analysis_line.getVariationCategoryItemList(
base_category_list=(base_category,))[0][0]
script_id = operation.getScriptId() script_id = operation.getScriptId()
getattr(operation_analysis_line, script_id)(**parameter_dict) getattr(operation_analysis_line, script_id)(**parameter_dict)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment