Changes between Initial Version and Version 1 of Ticket #5223


Ignore:
Timestamp:
Sep 1, 2013, 6:05:05 PM (9 years ago)
Author:
lpinner
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5223 – Description

    initial v1  
    1515print 'types:',a.dtype.type,b.dtype.type
    1616
    17 print 'Compare dtypes:', a.dtype==b.dtype
    18 print 'Compare dtype.types:', a.dtype.type==b.dtype.type
    19 print 'Compare a.dtype to np.int32:', a.dtype==np.int32
    20 print 'Compare b.dtype to np.int32:', b.dtype==np.int32
     17print 'Compare dtypes (expected output True):', a.dtype==b.dtype
     18print 'Compare types (expected output True):', a.dtype.type==b.dtype.type
    2119
    22 print 'NumericTypeCodeToGDALTypeCode(a.dtype.type):',repr(gdal_array.NumericTypeCodeToGDALTypeCode(a.dtype.type))
    23 print 'NumericTypeCodeToGDALTypeCode(b.dtype.type):',repr(gdal_array.NumericTypeCodeToGDALTypeCode(b.dtype.type))
     20print 'Compare b.dtype.type to np.int32 (expected output True):', b.dtype==np.int32
     21print 'Compare b.dtype.type to np.int32 (expected output True):', b.dtype.type==np.int32
     22print 'b.dtype.type is actually a np.intc:', b.dtype.type==np.intc
     23
     24print 'NumericTypeCodeToGDALTypeCode(a.dtype.type):',gdal_array.NumericTypeCodeToGDALTypeCode(a.dtype.type)
     25print 'NumericTypeCodeToGDALTypeCode(b.dtype.type):',gdal_array.NumericTypeCodeToGDALTypeCode(b.dtype.type)
    2426}}}
    2527This outputs: