home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 1434251512

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
1434251512 PR_kwDOAMm_X85CHYv0 7252 Use partial function in open_mfdataset example 32146793 closed 0     2 2022-11-03T08:00:30Z 2022-11-03T09:18:54Z 2022-11-03T09:18:53Z CONTRIBUTOR   0 pydata/xarray/pulls/7252

The example in xarray.open_mfdataset mentions usage of partial function, but does not use it correctly: (_preprocess should not be used as a parameter, but partial_func should be used)

python partial_func = partial(_preprocess, lon_bnds=lon_bnds, lat_bnds=lat_bnds) ds = xr.open_mfdataset( "file_*.nc", concat_dim="time", preprocess=_preprocess )

This PR fixes the example, to use partial_func:

python partial_func = partial(_preprocess, lon_bnds=lon_bnds, lat_bnds=lat_bnds) ds = xr.open_mfdataset( "file_*.nc", concat_dim="time", preprocess=partial_func )

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/7252/reactions",
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    13221727 pull

Links from other tables

  • 2 rows from issues_id in issues_labels
  • 2 rows from issue in issue_comments
Powered by Datasette · Queries took 0.736ms · About: xarray-datasette