def _check_frame(d, frame_str):
 if (d['coord_frame'] != _str_to_frame[frame_str]):
  raise RuntimeError(('dig point must be in %s coordinate frame, got %s' % (frame_str, _frame_to_str[d['coord_frame']])))

def _check_frame ( d , frame_str ) : if ( d [ 'coord_frame' ] != _str_to_frame [ frame_str ] ) : raise RuntimeError ( ( 'dig point must be in %s coordinate frame, got %s' % ( frame_str , _frame_to_str [ d [ 'coord_frame' ] ] ) ) )
helper to check coordinate frames .