def oozie_to_hue_frequency(frequency_string):
 matches = re.match(FREQUENCY_REGEX, frequency_string)
 if matches:
  return (matches.group('frequency_unit'), matches.group('frequency_number'))
 else:
  raise InvalidFrequency((_('invalid frequency: %s') % frequency_string))

def oozie_to_hue_frequency ( frequency_string ) : matches = re . match ( FREQUENCY_REGEX , frequency_string ) if matches : return ( matches . group ( 'frequency_unit' ) , matches . group ( 'frequency_number' ) ) else : raise InvalidFrequency ( ( _ ( 'invalid frequency: %s' ) % frequency_string ) )
get frequency number and units from frequency .