Home | History | Annotate | Download | only in png

Lines Matching refs:numpy

765         # changed the extend function to cope with NumPy integer types
783 # Not only does this work for the (slightly broken) NumPy
1116 The array is expected to be a ``numpy`` array, but it can be any
1129 is supposed to work both for ``numpy`` arrays and for Python
1255 # the array is a numpy array.
2877 # numpy dependent tests. These are skipped (with a message to
2878 # sys.stderr) if numpy cannot be imported.
2880 """numpy uint16."""
2883 import numpy
2885 print >>sys.stderr, "skipping numpy test"
2888 rows = [map(numpy.uint16, range(0,0x10000,0x5555))]
2892 """numpy uint8."""
2895 import numpy
2897 print >>sys.stderr, "skipping numpy test"
2900 rows = [map(numpy.uint8, range(0,0x100,0x55))]
2904 """numpy bool."""
2907 import numpy
2909 print >>sys.stderr, "skipping numpy test"
2912 rows = [map(numpy.bool, [0,1])]
2916 """numpy array."""
2918 import numpy
2920 print >>sys.stderr, "skipping numpy test"
2923 pixels = numpy.array([[0,0x5555],[0x5555,0xaaaa]], numpy.uint16)