From 0f836acb26794f5033d6f78203b2cf6c9481968e Mon Sep 17 00:00:00 2001 From: Jim Rybarski Date: Wed, 3 Dec 2014 00:15:49 -0600 Subject: [PATCH] cleaned up a bit --- nd2reader/model/__init__.py | 2 +- nd2reader/service/__init__.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/nd2reader/model/__init__.py b/nd2reader/model/__init__.py index cfb7e28..7c438b1 100644 --- a/nd2reader/model/__init__.py +++ b/nd2reader/model/__init__.py @@ -128,6 +128,7 @@ class MetadataItem(object): 6: self._parse_double, 8: self._parse_string, 9: self._parse_char_array, + 11: self._parse_metadata_item } return parser[self._datatype]() @@ -238,7 +239,6 @@ class Chunkmap(object): length -= data.tell()-lastpos nextdata = data.read(length) value = self.parse(nextdata, newcount) - print("WE GOT A NEW DICT") # Skip some offsets data.read(newcount * 8) else: diff --git a/nd2reader/service/__init__.py b/nd2reader/service/__init__.py index fdd0f65..e69b100 100644 --- a/nd2reader/service/__init__.py +++ b/nd2reader/service/__init__.py @@ -258,9 +258,6 @@ class Nd2Reader(object): return np.frombuffer(arr) def _z_level_count(self): - """read the microscope coordinates and temperatures - Missing: get chunknames and types from xml metadata""" - res = {} name = "CustomData|Z!" st = self._read_chunk(self._label_map[name].location) res = array.array("d", st)