Skip to content

Commit 6179d8e

Browse files
marekninjaMarek Petrovic
andauthored
Use partial function (#7252)
Co-authored-by: Marek Petrovic <marek_petrovic@swissre.com>
1 parent 0dfcfdd commit 6179d8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/backends/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ def open_mfdataset(
916916
>>> lon_bnds, lat_bnds = (-110, -105), (40, 45)
917917
>>> partial_func = partial(_preprocess, lon_bnds=lon_bnds, lat_bnds=lat_bnds)
918918
>>> ds = xr.open_mfdataset(
919-
... "file_*.nc", concat_dim="time", preprocess=_preprocess
919+
... "file_*.nc", concat_dim="time", preprocess=partial_func
920920
... ) # doctest: +SKIP
921921
922922
References

0 commit comments

Comments
 (0)