Browse Source

Remove unused lines from artificial

master
Ruben Verweij 7 years ago
parent
commit
55b43d948e
1 changed files with 1 additions and 7 deletions
  1. +1
    -7
      nd2reader/artificial.py

+ 1
- 7
nd2reader/artificial.py View File

@ -176,8 +176,6 @@ class ArtificialND2(object):
raw_data = struct.pack('I', data) raw_data = struct.pack('I', data)
elif isinstance(data, float): elif isinstance(data, float):
raw_data = struct.pack('d', data) raw_data = struct.pack('d', data)
elif isinstance(data, str):
raw_data = six.b(data)
return raw_data return raw_data
@ -186,12 +184,8 @@ class ArtificialND2(object):
return self.data_types['metadata_item'] return self.data_types['metadata_item']
elif isinstance(data, int): elif isinstance(data, int):
return self.data_types['unsigned_int'] return self.data_types['unsigned_int']
elif isinstance(data, float):
else:
return self.data_types['double'] return self.data_types['double']
elif isinstance(data, str):
return self.data_types['string']
return np.max(self.data_types.values()) + 1
def _pack_dict_with_metadata(self, data): def _pack_dict_with_metadata(self, data):
raw_data = b'' raw_data = b''


Loading…
Cancel
Save