def _check_hour_range(hrs):
 if np.any((np.abs(hrs) == 24.0)):
  warn(IllegalHourWarning(hrs, u'Treating as 24 hr'))
 elif (np.any((hrs < (-24.0))) or np.any((hrs > 24.0))):
  raise IllegalHourError(hrs)

def _check_hour_range ( hrs ) : if np . any ( ( np . abs ( hrs ) == 24.0 ) ) : warn ( IllegalHourWarning ( hrs , u'Treating as 24 hr' ) ) elif ( np . any ( ( hrs < ( - 24.0 ) ) ) or np . any ( ( hrs > 24.0 ) ) ) : raise IllegalHourError ( hrs )
checks that the given value is in the range .