We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 338e411 commit 173d2e9Copy full SHA for 173d2e9
weatherbench2/derived_variables.py
@@ -112,7 +112,7 @@ def _d_dx(field: xr.DataArray) -> xr.DataArray:
112
cos_theta = np.cos(np.deg2rad(latitude))
113
# TODO(shoyer): use a custom calculation with roll() instead of
114
# differentiate() to calculate rolling over 360 to 0 degrees properly.
115
- return _zero_poles(
+ return _zero_poles( # pytype: disable=bad-return-type
116
field.differentiate('longitude') / cos_theta / _METERS_PER_DEGREE
117
)
118
0 commit comments