Skip to content

Commit 173d2e9

Browse files
author
Weatherbench authors
committed
silence xarray pytype error in weatherbench2
PiperOrigin-RevId: 576698744
1 parent 338e411 commit 173d2e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

weatherbench2/derived_variables.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def _d_dx(field: xr.DataArray) -> xr.DataArray:
112112
cos_theta = np.cos(np.deg2rad(latitude))
113113
# TODO(shoyer): use a custom calculation with roll() instead of
114114
# differentiate() to calculate rolling over 360 to 0 degrees properly.
115-
return _zero_poles(
115+
return _zero_poles( # pytype: disable=bad-return-type
116116
field.differentiate('longitude') / cos_theta / _METERS_PER_DEGREE
117117
)
118118

0 commit comments

Comments
 (0)