xarray icon indicating copy to clipboard operation
xarray copied to clipboard

avoid converting custom indexes to pandas indexes when formatting coordinate diffs

Open keewis opened this issue 1 year ago • 2 comments

This would attempt to convert custom indexes to pandas indexes (by calling .indexes instead of .xindexes), which for some implementations may raise.

(I need this for xarray-contrib/pint-xarray#163)

  • [x] extracted from #8111
  • [x] Tests added
  • [x] User visible changes (including notable bug fixes) are documented in whats-new.rst

keewis avatar Jun 23 '24 23:06 keewis

Will this fix #5812? Or not quite yet?

TomNicholas avatar Jun 23 '24 23:06 TomNicholas

not yet, no. This just makes sure that the formatting of the coordinates representation does not call .indexes.

keewis avatar Jun 24 '24 09:06 keewis