Browse Source

cleaned up a bit

master
Jim Rybarski 10 years ago
parent
commit
0f836acb26
2 changed files with 1 additions and 4 deletions
  1. +1
    -1
      nd2reader/model/__init__.py
  2. +0
    -3
      nd2reader/service/__init__.py

+ 1
- 1
nd2reader/model/__init__.py View File

@ -128,6 +128,7 @@ class MetadataItem(object):
6: self._parse_double, 6: self._parse_double,
8: self._parse_string, 8: self._parse_string,
9: self._parse_char_array, 9: self._parse_char_array,
11: self._parse_metadata_item
} }
return parser[self._datatype]() return parser[self._datatype]()
@ -238,7 +239,6 @@ class Chunkmap(object):
length -= data.tell()-lastpos length -= data.tell()-lastpos
nextdata = data.read(length) nextdata = data.read(length)
value = self.parse(nextdata, newcount) value = self.parse(nextdata, newcount)
print("WE GOT A NEW DICT")
# Skip some offsets # Skip some offsets
data.read(newcount * 8) data.read(newcount * 8)
else: else:


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

@ -258,9 +258,6 @@ class Nd2Reader(object):
return np.frombuffer(arr) return np.frombuffer(arr)
def _z_level_count(self): def _z_level_count(self):
"""read the microscope coordinates and temperatures
Missing: get chunknames and types from xml metadata"""
res = {}
name = "CustomData|Z!" name = "CustomData|Z!"
st = self._read_chunk(self._label_map[name].location) st = self._read_chunk(self._label_map[name].location)
res = array.array("d", st) res = array.array("d", st)


Loading…
Cancel
Save