original_docstring: Ensure the value of a numeric field falls within the supplied limits (if any)
  
      Args:
          val: numeric value to validate
          sch_field_info ([str]): field info array from schema
      
docstring: Ensure the value of a numeric field falls within the supplied limits (if any)
docstring_tokens: Ensure the value of a numeric field falls within the supplied limits ( if any )
code: def _validate_number(val, sch_field_info):
      """Ensure the value of a numeric field falls within the supplied limits (if any)
  
      Args:
          val: numeric value to validate
          sch_field_info ([str]): field info array from schema
      """
      if len(sch_field_info) <= 4:
          return
      try:
          fv = float(val)
          fmin = float(sch_field_info[4])
      # Currently the values in enum arrays at the indices below are sometimes
      # used for other purposes, so we return rather than fail for non-numeric values
      except ValueError:
          return
      if fv < fmin:
          raise AssertionError(util.err(sch_field_info, 'numeric value {} out of range', val))
      if len(sch_field_info) > 5:
          try:
              fmax = float(sch_field_info[5])
          except ValueError:
              return
          if fv > fmax:
              raise AssertionError(util.err(sch_field_info, 'numeric value {} out of range', val))
code_tokens: def _validate_number ( val , sch_field_info ) : if len ( sch_field_info ) <= 4 : return try : fv = float ( val ) fmin = float ( sch_field_info [ 4 ] ) except ValueError : return if fv < fmin : raise AssertionError ( util . err ( sch_field_info , 'numeric value {} out of range' , val ) ) if len ( sch_field_info ) > 5 : try : fmax = float ( sch_field_info [ 5 ] ) except ValueError : return if fv > fmax : raise AssertionError ( util . err ( sch_field_info , 'numeric value {} out of range' , val ) )
short_docstring: Ensure the value of a numeric field falls within the supplied limits (if any)
short_docstring_tokens: Ensure the value of a numeric field falls within the supplied limits ( if any )
comment: """Ensure the value of a numeric field falls within the supplied limits (if any)
  
      Args:
          val: numeric value to validate
          sch_field_info ([str]): field info array from schema
      """$SEP$# Currently the values in enum arrays at the indices below are sometimes$SEP$# used for other purposes, so we return rather than fail for non-numeric values