datatree icon indicating copy to clipboard operation
datatree copied to clipboard

Method to reorder nodes

Open TomNicholas opened this issue 8 months ago • 2 comments

WIP sketch of a new dt.reorder method

  • [x] Closes #186, using suggestion (3) in https://github.com/xarray-contrib/datatree/issues/254#issuecomment-1665946112
  • [x] Tests added
  • [x] Passes pre-commit run --all-files
  • [x] New functions/methods are listed in api.rst
  • [x] Changes are summarized in docs/source/whats-new.rst

TomNicholas avatar Oct 25 '23 15:10 TomNicholas

I need to rename this so as not to be confused with Dataset.reorder_levels (which refers to levels of a MultiIndex).

TomNicholas avatar Oct 26 '23 15:10 TomNicholas

See the docs build for an example of what an example of using this looks like currently

https://xarray-datatree--271.org.readthedocs.build/en/271/generated/datatree.DataTree.reorder.html

TomNicholas avatar Nov 09 '23 19:11 TomNicholas