home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 1307195361

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
1307195361 PR_kwDOAMm_X847hz6o 6800 (scipy 2022 branch) Add an "options" argument to Index.from_variables() 4160723 closed 0     1 2022-07-17T20:01:00Z 2022-12-08T09:38:50Z 2022-09-02T13:54:46Z MEMBER   0 pydata/xarray/pulls/6800

It allows passing options to the constructor of a custom Index subclass, in case there's any relevant build options to expose to users. This could for example be the distance metric chosen for an index based on sklearn.neighbors.BallTree, or the CRS definition for a geospatial index.

The **options arguments of Dataset.set_xindex() are passed through.

An alternative way would be to pass options via coordinate metadata, like the spatial_ref coordinate in rioxarray. Perhaps both alternatives may co-exist?

This PR also adds type annotations to set_xindex().

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

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 1 row from issue in issue_comments
Powered by Datasette · Queries took 0.782ms · About: xarray-datasette