File tree 2 files changed +12
-6
lines changed 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,23 @@ Release notes
24
24
2.18.3
25
25
------
26
26
27
+ Enhancements
28
+ ~~~~~~~~~~~~
29
+ * Added support for creating a copy of data when converting a `zarr.Array `
30
+ to a numpy array.
31
+ By :user: `David Stansby <dstansby> `
32
+
27
33
Maintenance
28
34
~~~~~~~~~~~
29
35
* Removed support for Python 3.9.
30
36
By :user: `David Stansby <dstansby> `
31
-
37
+
32
38
* Fix a regression when using orthogonal indexing with a scalar.
33
39
By :user: `Deepak Cherian <dcherian> ` :issue: `1931 `
34
40
41
+ * Added compatibility with numpy 2.1.
42
+ By :user: `David Stansby <dstansby> `
43
+
35
44
36
45
.. _release_2.18.2 :
37
46
Original file line number Diff line number Diff line change @@ -575,11 +575,8 @@ def __eq__(self, other):
575
575
# store comparison
576
576
)
577
577
578
- def __array__ (self , * args ):
579
- a = self [...]
580
- if args :
581
- a = a .astype (args [0 ])
582
- return a
578
+ def __array__ (self , dtype = None , copy = None ):
579
+ return np .array (self [...], dtype = dtype , copy = copy )
583
580
584
581
def islice (self , start = None , end = None ):
585
582
"""
You can’t perform that action at this time.
0 commit comments