def _get_frame_class(frame):
 import inspect
 if isinstance(frame, six.string_types):
  frame_names = frame_transform_graph.get_names()
  if (frame not in frame_names):
   raise ValueError(u'Coordinate frame {0} not in allowed values {1}'.format(frame, sorted(frame_names)))
  frame_cls = frame_transform_graph.lookup_name(frame)
 elif (inspect.isclass(frame) and issubclass(frame, BaseCoordinateFrame)):
  frame_cls = frame
 else:
  raise ValueError(u'Coordinate frame must be a frame name or frame class')
 return frame_cls

def _get_frame_class ( frame ) : import inspect if isinstance ( frame , six . string_types ) : frame_names = frame_transform_graph . get_names ( ) if ( frame not in frame_names ) : raise ValueError ( u'Coordinate frame {0} not in allowed values {1}' . format ( frame , sorted ( frame_names ) ) ) frame_cls = frame_transform_graph . lookup_name ( frame ) elif ( inspect . isclass ( frame ) and issubclass ( frame , BaseCoordinateFrame ) ) : frame_cls = frame else : raise ValueError ( u'Coordinate frame must be a frame name or frame class' ) return frame_cls
get a frame class from the input frame .