Browse Source

fixed error where non-deleted fields of view woudn't work

zolfa-add_slices_loading
jim 10 years ago
parent
commit
d44968ade6
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      nd2reader/service/__init__.py

+ 0
- 1
nd2reader/service/__init__.py View File

@ -72,7 +72,6 @@ class BaseNd2(object):
try: try:
valid_fovs = self._metadata['ImageMetadata']['SLxExperiment']['ppNextLevelEx'][''][0]['pItemValid'] valid_fovs = self._metadata['ImageMetadata']['SLxExperiment']['ppNextLevelEx'][''][0]['pItemValid']
except KeyError: except KeyError:
# if nothing was deleted, there won't be a 0 key
valid_fovs = self._metadata['ImageMetadata']['SLxExperiment']['ppNextLevelEx']['']['pItemValid'] valid_fovs = self._metadata['ImageMetadata']['SLxExperiment']['ppNextLevelEx']['']['pItemValid']
return sum(valid_fovs) return sum(valid_fovs)


Loading…
Cancel
Save