@@ -706,46 +706,40 @@ async def tree(self, expand: bool = False, level: int | None = None) -> Any:
706
706
raise NotImplementedError
707
707
708
708
async def empty (self , * , name : str , shape : ChunkCoords , ** kwargs : Any ) -> AsyncArray :
709
- path = str (self .store_path / name )
710
- return await async_api .empty (shape = shape , path = path , ** kwargs )
709
+ return await async_api .empty (shape = shape , store = self .store_path , path = name , ** kwargs )
711
710
712
711
async def zeros (self , * , name : str , shape : ChunkCoords , ** kwargs : Any ) -> AsyncArray :
713
- path = str (self .store_path / name )
714
- return await async_api .zeros (shape = shape , path = path , ** kwargs )
712
+ return await async_api .zeros (shape = shape , store = self .store_path , path = name , ** kwargs )
715
713
716
714
async def ones (self , * , name : str , shape : ChunkCoords , ** kwargs : Any ) -> AsyncArray :
717
- path = str (self .store_path / name )
718
- return await async_api .ones (shape = shape , path = path , ** kwargs )
715
+ return await async_api .ones (shape = shape , store = self .store_path , path = name , ** kwargs )
719
716
720
717
async def full (
721
718
self , * , name : str , shape : ChunkCoords , fill_value : Any | None , ** kwargs : Any
722
719
) -> AsyncArray :
723
- path = str (self .store_path / name )
724
- return await async_api .full (shape = shape , fill_value = fill_value , path = path , ** kwargs )
720
+ return await async_api .full (
721
+ shape = shape , fill_value = fill_value , store = self .store_path , path = name , ** kwargs
722
+ )
725
723
726
724
async def empty_like (
727
725
self , * , name : str , prototype : async_api .ArrayLike , ** kwargs : Any
728
726
) -> AsyncArray :
729
- path = str (self .store_path / name )
730
- return await async_api .empty_like (a = prototype , path = path , ** kwargs )
727
+ return await async_api .empty_like (a = prototype , store = self .store_path , path = name , ** kwargs )
731
728
732
729
async def zeros_like (
733
730
self , * , name : str , prototype : async_api .ArrayLike , ** kwargs : Any
734
731
) -> AsyncArray :
735
- path = str (self .store_path / name )
736
- return await async_api .zeros_like (a = prototype , path = path , ** kwargs )
732
+ return await async_api .zeros_like (a = prototype , store = self .store_path , path = name , ** kwargs )
737
733
738
734
async def ones_like (
739
735
self , * , name : str , prototype : async_api .ArrayLike , ** kwargs : Any
740
736
) -> AsyncArray :
741
- path = str (self .store_path / name )
742
- return await async_api .ones_like (a = prototype , path = path , ** kwargs )
737
+ return await async_api .ones_like (a = prototype , store = self .store_path , path = name , ** kwargs )
743
738
744
739
async def full_like (
745
740
self , * , name : str , prototype : async_api .ArrayLike , ** kwargs : Any
746
741
) -> AsyncArray :
747
- path = str (self .store_path / name )
748
- return await async_api .full_like (a = prototype , path = path , ** kwargs )
742
+ return await async_api .full_like (a = prototype , store = self .store_path , path = name , ** kwargs )
749
743
750
744
async def move (self , source : str , dest : str ) -> None :
751
745
raise NotImplementedError
0 commit comments