nwm_eval.utils.get_key_from_value#

nwm_eval.utils.get_key_from_value(d, value)[source]#

Get the key from a dictionary given a value.

Parameters:
  • d (dict) – The dictionary to search.

  • value – The value to find the corresponding key for.

Returns:

The key corresponding to the given value, or None if not found.