Commit cb190bf8 authored by Klaus Zimmermann's avatar Klaus Zimmermann
Browse files

Add conversion of dtype to threshold handling (fixes #136)

parent 81da3e71
......@@ -79,6 +79,9 @@ class ThresholdMixin:
def prepare(self, input_cube):
threshold = self.threshold
threshold.points = threshold.points.astype(input_cube.dtype)
if threshold.has_bounds():
threshold.bounds = threshold.bounds.astype(input_cube.dtype)
change_units(threshold,
input_cube.units,
input_cube.standard_name)
......
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