Commit f27de1d4 authored by Niklas Selke's avatar Niklas Selke
Browse files

Changed the order of function calls in 'calculate_statistics'.

parent 19400dc0
......@@ -115,6 +115,9 @@ def calculate_statistics(
else DEFAULT_CROPS, input_parameters.required.seasons,
input_parameters.required.crops
)
reference_data_frame = create_reference_data_frame(
input_parameters.data.index
)
resample_rule = ("seasonal" if input_parameters.sampling == "vegseason"
else input_parameters.sampling)
if input_parameters.data_capture is not None:
......@@ -123,6 +126,3 @@ def calculate_statistics(
data_capture_value = 0.5
else:
data_capture_value = DEFAULT_DATA_CAPTURE
reference_data_frame = create_reference_data_frame(
input_parameters.data.index
)
Supports Markdown
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