home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 1444752393

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
1444752393 I_kwDOAMm_X85WHSwJ 7278 remap_label_indexers removed without deprecation update? 167164 closed 0     5 2022-11-11T00:38:30Z 2022-11-21T02:18:56Z 2022-11-16T01:54:24Z NONE      

What is your issue?

Not sure if this is a docs problem or a usage question. Our code was working on v0.19.0, and now isn't, because:

python E ImportError: cannot import name 'remap_label_indexers' from 'xarray.core.indexing' (/home/nedcr/miniconda3/lib/python3.9/site-packages/xarray/core/indexing.py)

Seems like this function was removed, but I can't find anything in the changelog on how to replace it, and the commit in which it was removed is huge and impenetrable.

The line we use it in is:

python nearest_point = remap_label_indexers(self.data, dict(x=x, y=y), method='nearest')[0]

I realist that this was probably a function intended for internal use only, but it was what I found at the time (years ago).

Is there a better way to do this? What replaces this function?

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

Links from other tables

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