We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent defa84e commit ced3acbCopy full SHA for ced3acb
src/earthkit/meteo/thermo/array/es_comp.py
@@ -148,7 +148,7 @@ def _es_mixed(t, xp):
148
# svp = alpha * es_water + (1.0 - alpha) * es_ice
149
150
t = xp.asarray(t)
151
- svp = xp.zeros(t.shape, dtype=t.dtype, device=xp.device(t))
+ svp = xp.zeros_like(t, dtype=t.dtype)
152
153
# ice range
154
i_mask = t <= TI
@@ -176,7 +176,7 @@ def _es_ice_slope(t, xp):
176
177
def _es_mixed_slope(t, xp):
178
179
- d_svp = xp.zeros(t.shape, dtype=t.dtype, device=xp.device(t))
+ d_svp = xp.zeros_like(t, dtype=t.dtype)
180
181
182
0 commit comments