File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -1057,8 +1057,7 @@ def from_array(
10571057 >>> )
10581058 <Array memory://125477392154368 shape=(2, 2) dtype=int64>
10591059 >>> arr4[...]
1060- [[1 2]
1061- [3 4]]
1060+ array([[1, 2],[3, 4]])
10621061
10631062 Create an array from an existing Array without copying the data:
10641063 >>> arr5 = zarr.from_array(
@@ -1068,8 +1067,7 @@ def from_array(
10681067 >>> )
10691068 <Array memory://140678602965568 shape=(2, 2) dtype=int64>
10701069 >>> arr5[...]
1071- [[0 0]
1072- [0 0]]
1070+ array([[0, 0],[0, 0]])
10731071 """
10741072 return Array (
10751073 sync (
Original file line number Diff line number Diff line change @@ -3905,8 +3905,7 @@ async def from_array(
39053905 >>> )
39063906 <AsyncArray memory://123286959761024 shape=(2, 2) dtype=int64>
39073907 >>> await arr4.getitem(...)
3908- array([[1, 2],
3909- [3, 4]])
3908+ array([[1, 2],[3, 4]])
39103909
39113910 Create an array from an existing Array without copying the data:
39123911 >>> arr5 = await zarr.api.asynchronous.from_array(
@@ -3916,8 +3915,7 @@ async def from_array(
39163915 >>> )
39173916 <AsyncArray memory://140678602965568 shape=(2, 2) dtype=int64>
39183917 >>> await arr5.getitem(...)
3919- array([[0, 0],
3920- [0, 0]])
3918+ array([[0, 0],[0, 0]])
39213919 """
39223920 if isinstance (data , Array ):
39233921 if chunks == "keep" :
You can’t perform that action at this time.
0 commit comments