pcdsdevices.utils.get_status_value

pcdsdevices.utils.get_status_value(status_info, *keys, default_value='N/A')

Get the value of a dictionary key.

Parameters:
  • status_info (dict) – Dictionary to look through.

  • keys (list) – List of keys to look through with nested dictionarie.

  • default_value (str) – A default value to return if the item value was not found.

Returns:

value (dictionary item value) – Value of the last key in the keys list.