Commit 99426c09 authored by Klaus Zimmermann's avatar Klaus Zimmermann
Browse files

Fix bug in prepare (fixes #41)

parent e7c21810
......@@ -12,7 +12,7 @@ index_functions:
First, the threshold is transformed to the same standard_name and units as
the input data.
Then the thresholding is performed as condition(data, threshold),
ie if threshold is <, data < threshold.
ie if condition is <, data < threshold.
Then the spells are determined, and finally the statistics according to
the specified reducer are calculated.
......@@ -12,7 +12,7 @@ class SpellLength:
self.reducer = reducer
def prepare(self, input_cube):
if is_precipitation(self.input_cube):
if is_precipitation(input_cube):
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