Skip to content

Commit 5834da4

Browse files
author
schmide
committed
util.coordinates: exchange np.float64 with n.array, so the data type is unambiguous (which prevents warning E1137)
1 parent 993e081 commit 5834da4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

climada/util/coordinates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,7 @@ def interp_raster_data(data, interp_y, interp_x, transform, method='linear', fil
12931293
y_dim = ymin - yres / 2 + yres * np.arange(data.shape[0])
12941294
x_dim = xmin - xres / 2 + xres * np.arange(data.shape[1])
12951295

1296-
data = np.float64(data)
1296+
data = np.array(data, dtype=np.float64)
12971297
data[np.isnan(data)] = fill_value
12981298
return scipy.interpolate.interpn((y_dim, x_dim), data, np.vstack([interp_y, interp_x]).T,
12991299
method=method, bounds_error=False, fill_value=fill_value)

0 commit comments

Comments
 (0)