Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Klaus Zimmermann
climix
Commits
cb190bf8
Commit
cb190bf8
authored
Nov 21, 2019
by
Klaus Zimmermann
Browse files
Add conversion of dtype to threshold handling (fixes #136)
parent
81da3e71
Changes
1
Hide whitespace changes
Inline
Side-by-side
climix/index_functions/support.py
View file @
cb190bf8
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment