From 01dca4ef5ff04df9883d2310537974fa3a98c51f Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Fri, 14 May 2010 15:53:27 +0200 Subject: [PATCH] Found shorthand for constructing dtype str (thanks, Zach!). --- scikits/image/io/_plugins/freeimage_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scikits/image/io/_plugins/freeimage_plugin.py b/scikits/image/io/_plugins/freeimage_plugin.py index ae74b126..37824727 100644 --- a/scikits/image/io/_plugins/freeimage_plugin.py +++ b/scikits/image/io/_plugins/freeimage_plugin.py @@ -299,7 +299,7 @@ def _wrap_bitmap_bits_in_array(bitmap, shape, dtype): __array_interface__ = { 'data': (bits, False), 'strides': strides, - 'typestr': dtype.byteorder + dtype.kind + str(dtype.itemsize), + 'typestr': dtype.str, 'shape': tuple(shape), }