spice_ev.util.set_attr_from_dict

spice_ev.util.set_attr_from_dict(source, target, keys, optional_keys)

Set attributes of target from a source dictionary.

None values for optional keys are not converted.

Parameters:
  • source (dict) – dictionary

  • target (object) – target object

  • keys (list) – parameter list

  • optional_keys (list) – parameter list