This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.


Value corresponding to a string


value = H5ML.get_constant_value(constant)


value = H5ML.get_constant_value(constant) returns the value corresponding to a given string. The string should correspond to an enumeration (for example, 'H5_ENUM_T') or a predefined identifier (for example, 'H5T_NATIVE_INT'). Since the value corresponding to a given string is not guaranteed to remain the same, it is almost always preferable to use the H5ML.compare_values() function instead.

Function parameters:

valueThe value corresponding to the supplied string
constantA string that corresponds to a HDF5 enumeration or defined value.


a = H5ML.get_constant_value('H5T_NATIVE_INT');
Was this topic helpful?