Skip to content

Commit

Permalink
Use partial function (#7252)
Browse files Browse the repository at this point in the history
Co-authored-by: Marek Petrovic <marek_petrovic@swissre.com>
  • Loading branch information
marekninja and Marek Petrovic authored Nov 3, 2022
1 parent 0dfcfdd commit 6179d8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/backends/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ def open_mfdataset(
>>> lon_bnds, lat_bnds = (-110, -105), (40, 45)
>>> partial_func = partial(_preprocess, lon_bnds=lon_bnds, lat_bnds=lat_bnds)
>>> ds = xr.open_mfdataset(
... "file_*.nc", concat_dim="time", preprocess=_preprocess
... "file_*.nc", concat_dim="time", preprocess=partial_func
... ) # doctest: +SKIP
References
Expand Down

0 comments on commit 6179d8e

Please sign in to comment.