This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
nd2reader
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
added data attribute back with deprecation warning
master
jim
9 years ago
parent
68599acad9
commit
70e7f7a1b2
1 changed files
with
6 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-0
nd2reader/model/image.py
+ 6
- 0
nd2reader/model/image.py
View File
@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
import
numpy
as
np
import
warnings
class
Image
(
np
.
ndarray
)
:
@ -97,3 +98,8 @@ class Image(np.ndarray):
"""
return
self
.
_z_level
@property
def
data
(
self
)
:
warnings
.
warn
(
"
Image objects now directly subclass Numpy arrays, so using the data attribute will be removed in the near future.
"
,
DeprecationWarning
)
return
self
Write
Preview
Loading…
Cancel
Save