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 a88bd2b commit 4ba8c59Copy full SHA for 4ba8c59
xarray/core/dataset.py
@@ -8983,7 +8983,9 @@ def pad(
8983
filtered_constant_values = constant_values[name]
8984
elif not set(var.dims).isdisjoint(constant_values.keys()):
8985
filtered_constant_values = {
8986
- k: v for k, v in constant_values.items() if k in var.dims # type: ignore[misc]
+ k: v
8987
+ for k, v in constant_values.items()
8988
+ if k in var.dims # type: ignore[misc]
8989
}
8990
else:
8991
filtered_constant_values = 0 # TODO: https://github.com/pydata/xarray/pull/9353#discussion_r1724018352
0 commit comments