Browse Source

resolves #2

zolfa-add_slices_loading
Jim Rybarski 10 years ago
parent
commit
5cd4076ec0
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      nd2reader/parser.py

+ 3
- 3
nd2reader/parser.py View File

@ -64,8 +64,8 @@ class Nd2Parser(object):
image_data = image_group_data[image_data_start::self._channel_count]
# Skip images that are all zeros! This is important, since NIS Elements creates blank "gap" images if you
# don't have the same number of images each cycle. We discovered this because we only took GFP images every
# other cycle to reduce phototoxicity, but NIS Elements still allocated memory as if we were going to take them
# every cyle.
# other cycle to reduce phototoxicity, but NIS Elements still allocated memory as if we were going to take
# them every cycle.
if np.any(image_data):
return timestamp, image_data
return None
@ -137,7 +137,7 @@ class Nd2Parser(object):
Image data is interleaved for each image set. That is, if there are four images in a set, the first image
will consist of pixels 1, 5, 9, etc, the second will be pixels 2, 6, 10, and so forth.
:rtype: int
:rtype: dict
"""
channel_offset = {}


Loading…
Cancel
Save