Browse Source

Extend unit tests

master
Ruben Verweij 8 years ago
parent
commit
c289a45c02
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      nd2reader/raw_metadata.py

+ 5
- 2
nd2reader/raw_metadata.py View File

@ -58,11 +58,14 @@ class RawMetadata(object):
return callback() return callback()
return None return None
def _parse_width_or_height(self, key):
return self.image_attributes[six.b('SLxImageAttributes')][six.b(key)]
def _parse_height(self): def _parse_height(self):
return self.image_attributes[six.b('SLxImageAttributes')][six.b('uiHeight')]
return self._parse_width_or_height('uiHeight')
def _parse_width(self): def _parse_width(self):
return self.image_attributes[six.b('SLxImageAttributes')][six.b('uiWidth')]
return self._parse_width_or_height('uiWidth')
def _parse_date(self): def _parse_date(self):
return parse_date(self.image_text_info[six.b('SLxImageTextInfo')]) return parse_date(self.image_text_info[six.b('SLxImageTextInfo')])


Loading…
Cancel
Save