Browse Source

Merge pull request #48 from jimrybarski/45-feature-len

45 feature len
master
Jim Rybarski 10 years ago
parent
commit
1e49757494
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      nd2reader/__init__.py

+ 10
- 0
nd2reader/__init__.py View File

@ -24,6 +24,16 @@ class Nd2(Nd2Parser):
"Z-Levels: %s" % self._z_level_count
])
def __len__(self):
"""
This should be the total number of images in the ND2, but it may be inaccurate. If the ND2 contains a
different number of images in a cycle (i.e. there are "gap" images) it will be higher than reality.
:rtype: int
"""
return self._image_count * self._channel_count
@property
def height(self):
"""


Loading…
Cancel
Save