ResSimpy.Utils.invert_nexus_map.invert_nexus_map
- ResSimpy.Utils.invert_nexus_map.invert_nexus_map(nexus_mapping: dict[str, tuple[str, type]]) dict[str, str][source]
Takes a nexus map of the form {NEXUS KEYWORD: (‘attribute_name’, type), …} and reverses it to give a map from attribute names to Nexus Keywords.
Args:
nexus_mapping (dict[str, tuple[str, type]]): dictionary of the form n {NEXUS KEYWORD: (‘attribute_name’, type), …}
Returns:
dict[str, str] of the form {‘attribute_name’: ‘NEXUS_KEYWORD’}