Skip to content

Commit

Permalink
Add number value as numpy float32
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnvanhoey committed Sep 26, 2024
1 parent 11d0e67 commit 9d02b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion niche_vlaanderen/niche.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def set_input(self, key, value):
if isinstance(value, numbers.Number):
# Remove any existing values to make sure last value is used
self._inputfiles.pop(key, None)
self._inputvalues[key] = value
self._inputvalues[key] = np.float32(value)
else:
with rasterio.open(value, "r") as dst:
sc_new = SpatialContext(dst)
Expand Down

0 comments on commit 9d02b01

Please sign in to comment.