diff --git a/python/ndstorage/ndtiff_index.py b/python/ndstorage/ndtiff_index.py index eba11ea..9d701be 100644 --- a/python/ndstorage/ndtiff_index.py +++ b/python/ndstorage/ndtiff_index.py @@ -138,7 +138,7 @@ def get_bit_depth(self): def as_byte_buffer(self): axes = {axis_name: position for axis_name, position in self.axes_key} - axes_key_bytes = json.dumps(axes).encode('utf-8') + axes_key_bytes = NDTiffIndexEntry.serialize_axes(axes).encode('utf-8') filename_bytes = self.filename.encode('utf-8') buffer = BytesIO()