def _get_representation_attrs(frame, units, kwargs):
 frame_attr_names = frame.representation_component_names.keys()
 repr_attr_classes = frame.representation.attr_classes.values()
 valid_kwargs = {}
 for (frame_attr_name, repr_attr_class, unit) in zip(frame_attr_names, repr_attr_classes, units):
  value = kwargs.pop(frame_attr_name, None)
  if (value is not None):
   valid_kwargs[frame_attr_name] = repr_attr_class(value, unit=unit)
 return valid_kwargs

def _get_representation_attrs ( frame , units , kwargs ) : frame_attr_names = frame . representation_component_names . keys ( ) repr_attr_classes = frame . representation . attr_classes . values ( ) valid_kwargs = { } for ( frame_attr_name , repr_attr_class , unit ) in zip ( frame_attr_names , repr_attr_classes , units ) : value = kwargs . pop ( frame_attr_name , None ) if ( value is not None ) : valid_kwargs [ frame_attr_name ] = repr_attr_class ( value , unit = unit ) return valid_kwargs
find instances of the "representation attributes" for specifying data for this frame .