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
Merge pull request
#148
from jimrybarski/147-more-numpylike-behavior
#147
: this mostly resolves the issue and I'm going to close it out wi…
master
Jim Rybarski
9 years ago
parent
8aaa453bbd
a1d73157b4
commit
3b5b934ba2
1 changed files
with
6 additions
and
0 deletions
Unified 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
@ -19,6 +19,12 @@ class Image(np.ndarray):
self
.
_channel
=
None
self
.
_channel
=
None
self
.
_z_level
=
None
self
.
_z_level
=
None
def
__array_wrap__
(
self
,
obj
)
:
if
len
(
obj
.
shape
)
==
0
:
return
obj
[
(
)
]
else
:
return
np
.
ndarray
.
__array_wrap__
(
obj
)
def
add_params
(
self
,
index
,
timestamp
,
frame_number
,
field_of_view
,
channel
,
z_level
)
:
def
add_params
(
self
,
index
,
timestamp
,
frame_number
,
field_of_view
,
channel
,
z_level
)
:
"""
"""
:
param
index
:
The
integer
that
can
be
used
to
directly
index
this
image
:
param
index
:
The
integer
that
can
be
used
to
directly
index
this
image
Write
Preview
Loading…
Cancel
Save