File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ impl DatasetOp<Zarr> for ZarrDataset {
414414 if let Some ( subset) = to_array_subset ( sel) {
415415 let arr = dataset
416416 . dataset
417- . retrieve_array_subset_ndarray_sharded_opt (
417+ . retrieve_array_subset_sharded_opt :: < ndarray :: ArrayD < T > > (
418418 & dataset. cache ,
419419 & subset,
420420 & zarrs:: array:: CodecOptions :: default ( ) ,
@@ -425,7 +425,7 @@ impl DatasetOp<Zarr> for ZarrDataset {
425425 // Read the entire array and then select the slice.
426426 let arr = dataset
427427 . dataset
428- . retrieve_array_subset_ndarray_sharded_opt (
428+ . retrieve_array_subset_sharded_opt :: < ndarray :: ArrayD < T > > (
429429 & dataset. cache ,
430430 & dataset. dataset . subset_all ( ) ,
431431 & zarrs:: array:: CodecOptions :: default ( ) ,
@@ -485,7 +485,7 @@ impl DatasetOp<Zarr> for ZarrDataset {
485485 if starts. len ( ) == selection. ndim ( ) {
486486 container
487487 . dataset
488- . store_array_subset_ndarray ( starts. as_slice ( ) , & arr) ?;
488+ . store_array_subset ( & ArraySubset :: new_with_start_shape ( starts, arr . shape ( ) . iter ( ) . map ( |x| * x as u64 ) . collect ( ) ) ? , arr. to_owned ( ) ) ?;
489489 } else {
490490 panic ! ( "Not implemented" ) ;
491491 }
You can’t perform that action at this time.
0 commit comments