From 55b43d948e683cd4bf3be66e4fc7c17498d0c681 Mon Sep 17 00:00:00 2001 From: Ruben Verweij Date: Tue, 18 Jul 2017 17:16:46 +0200 Subject: [PATCH] Remove unused lines from artificial --- nd2reader/artificial.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/nd2reader/artificial.py b/nd2reader/artificial.py index 674e1e7..1870ff0 100644 --- a/nd2reader/artificial.py +++ b/nd2reader/artificial.py @@ -176,8 +176,6 @@ class ArtificialND2(object): raw_data = struct.pack('I', data) elif isinstance(data, float): raw_data = struct.pack('d', data) - elif isinstance(data, str): - raw_data = six.b(data) return raw_data @@ -186,12 +184,8 @@ class ArtificialND2(object): return self.data_types['metadata_item'] elif isinstance(data, int): return self.data_types['unsigned_int'] - elif isinstance(data, float): + else: 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): raw_data = b''