Set sign property for integer data type
H5T.set_sign(type_id,sign)
H5T.set_sign(type_id,sign)
sets the sign property for an integer type.
type_id
is a data type identifier. Specify the sign type
sign
as 'H5T_SGN_NONE'
or
'H5T_SGN_2'
.
type_id = H5T.copy('H5T_NATIVE_LONG'); sgn = H5ML.get_constant_value('H5T_SGN_NONE'); H5T.set_sign(type_id,sgn);