@@ -3878,44 +3878,48 @@ async def from_array(
38783878
38793879    Examples 
38803880    -------- 
3881-     Create an array from an existing Array: 
3882-     >>> import zarr 
3883-     >>> store = zarr.storage.MemoryStore() 
3884-     >>> store2 = zarr.storage.LocalStore('example.zarr') 
3885-     >>> arr = zarr.create_array( 
3886-     >>>     store=store, 
3887-     >>>     shape=(100,100), 
3888-     >>>     chunks=(10,10), 
3889-     >>>     dtype='int32', 
3890-     >>>     fill_value=0) 
3891-     >>> arr2 = await zarr.api.asynchronous.from_array(arr, store=store2) 
3892-     <AsyncArray file://example.zarr shape=(100, 100) dtype=int32> 
3893- 
3894-     Create an array from an existing NumPy array: 
3895-     >>> arr3 = await zarr.api.asynchronous.from_array( 
3896-     >>>     np.arange(10000, dtype='i4').reshape(100, 100), 
3897-     >>>     store=zarr.storage.MemoryStore(), 
3898-     >>> ) 
3899-     <AsyncArray memory://123286956732800 shape=(100, 100) dtype=int32> 
3900- 
3901-     Create an array from any array-like object: 
3902-     >>> arr4 = await zarr.api.asynchronous.from_array( 
3903-     >>>     [[1, 2], [3, 4]], 
3904-     >>>     store=zarr.storage.MemoryStore(), 
3905-     >>> ) 
3906-     <AsyncArray memory://123286959761024 shape=(2, 2) dtype=int64> 
3907-     >>> await arr4.getitem(...) 
3908-     array([[1, 2],[3, 4]]) 
3909- 
3910-     Create an array from an existing Array without copying the data: 
3911-     >>> arr5 = await zarr.api.asynchronous.from_array( 
3912-     >>>     Array(arr4), 
3913-     >>>     store=zarr.storage.MemoryStore(), 
3914-     >>>     write_data=False, 
3915-     >>> ) 
3916-     <AsyncArray memory://140678602965568 shape=(2, 2) dtype=int64> 
3917-     >>> await arr5.getitem(...) 
3918-     array([[0, 0],[0, 0]]) 
3881+     Create an array from an existing Array:: 
3882+ 
3883+         >>> import zarr 
3884+         >>> store = zarr.storage.MemoryStore() 
3885+         >>> store2 = zarr.storage.LocalStore('example.zarr') 
3886+         >>> arr = zarr.create_array( 
3887+         >>>     store=store, 
3888+         >>>     shape=(100,100), 
3889+         >>>     chunks=(10,10), 
3890+         >>>     dtype='int32', 
3891+         >>>     fill_value=0) 
3892+         >>> arr2 = await zarr.api.asynchronous.from_array(arr, store=store2) 
3893+         <AsyncArray file://example.zarr shape=(100, 100) dtype=int32> 
3894+ 
3895+     Create an array from an existing NumPy array:: 
3896+ 
3897+         >>> arr3 = await zarr.api.asynchronous.from_array( 
3898+         >>>     np.arange(10000, dtype='i4').reshape(100, 100), 
3899+         >>>     store=zarr.storage.MemoryStore(), 
3900+         >>> ) 
3901+         <AsyncArray memory://123286956732800 shape=(100, 100) dtype=int32> 
3902+ 
3903+     Create an array from any array-like object:: 
3904+ 
3905+         >>> arr4 = await zarr.api.asynchronous.from_array( 
3906+         >>>     [[1, 2], [3, 4]], 
3907+         >>>     store=zarr.storage.MemoryStore(), 
3908+         >>> ) 
3909+         <AsyncArray memory://123286959761024 shape=(2, 2) dtype=int64> 
3910+         >>> await arr4.getitem(...) 
3911+         array([[1, 2],[3, 4]]) 
3912+ 
3913+     Create an array from an existing Array without copying the data:: 
3914+ 
3915+         >>> arr5 = await zarr.api.asynchronous.from_array( 
3916+         >>>     Array(arr4), 
3917+         >>>     store=zarr.storage.MemoryStore(), 
3918+         >>>     write_data=False, 
3919+         >>> ) 
3920+         <AsyncArray memory://140678602965568 shape=(2, 2) dtype=int64> 
3921+         >>> await arr5.getitem(...) 
3922+         array([[0, 0],[0, 0]]) 
39193923    """ 
39203924    if  isinstance (data , Array ):
39213925        if  chunks  ==  "keep" :
0 commit comments