mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-03 16:41:21 +08:00
Found shorthand for constructing dtype str (thanks, Zach!).
This commit is contained in:
@@ -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),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user