iwfm.debug.check_key

iwfm.debug.check_key(d, key)[source]

Check if key is in dictionary, for debugging.

Parameters:
  • d (dict) – Dictionary

  • key ((any type)) – Dictionary key value

Returns:

  • True (bool if key is in dictionary)

  • False (bool if key is not in dictionary)