map_API_enum

ndmapper.libutils.map_API_enum(name, value, map_dict)[source] [edit on github]

Convert an enumerable parameter value from the Python API to its equivalent IRAF value in the supplied dictionary (where such a mapping exists), raising an appropriate exception if it’s not recognized.