From d44968ade6f0f2efe9f985b2ba6d327d033468c7 Mon Sep 17 00:00:00 2001 From: jim Date: Wed, 10 Dec 2014 09:34:21 -0600 Subject: [PATCH] fixed error where non-deleted fields of view woudn't work --- nd2reader/service/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/nd2reader/service/__init__.py b/nd2reader/service/__init__.py index dc617b2..74e5f53 100644 --- a/nd2reader/service/__init__.py +++ b/nd2reader/service/__init__.py @@ -72,7 +72,6 @@ class BaseNd2(object): try: valid_fovs = self._metadata['ImageMetadata']['SLxExperiment']['ppNextLevelEx'][''][0]['pItemValid'] except KeyError: - # if nothing was deleted, there won't be a 0 key valid_fovs = self._metadata['ImageMetadata']['SLxExperiment']['ppNextLevelEx']['']['pItemValid'] return sum(valid_fovs)