Closed weiji14 closed 1 year ago
Allow the number of chips from XbatcherSlicer datapipes to be calculated directly using len()!
len()
Not previously implemented (see https://github.com/weiji14/zen3geo/pull/22#discussion_r913310227) because it was inefficient in xbatcher, but xbatcher v0.2.0 has implemented lazy batch generation (see https://github.com/xarray-contrib/xbatcher/pull/112) so this should be performant enough now.
TODO:
__len__
len(dp_xbatcher)
References:
Allow the number of chips from XbatcherSlicer datapipes to be calculated directly using
len()
!Not previously implemented (see https://github.com/weiji14/zen3geo/pull/22#discussion_r913310227) because it was inefficient in xbatcher, but xbatcher v0.2.0 has implemented lazy batch generation (see https://github.com/xarray-contrib/xbatcher/pull/112) so this should be performant enough now.
TODO:
__len__
in XbatcherSlicerlen(dp_xbatcher)
directly.References: