xarray-contrib/xbatcher

Testing improvements

Opened this issue · 0 comments

What is your issue?

As mentioned in #71 (review), the xbatcher test suite needs improvements. This issue will track necessary improvements to the tests (additions are welcome):

  • Test data loaders on both datasets and dataarrays (done for pytorch at #85, still need to do for keras/tensorflow)
  • Make data loader tests more granular
  • Test batch generation on datasets with multi-dimensional coordinates
  • Test batch generation on datasets with non-dimensional coordinates
  • Test batch generation on datasets with other index types
  • Use xarray testing methods on batches for more informative diffs
  • Add a test for batch_dims (#121)