parameters: (message_end=None)
docstring: Checks threshold for frequencies.
          :param message_end: closing part of the error message.
docstring_summary: Checks threshold for frequencies.
          :param message_end: closing part of the error message.
docstring_tokens: Checks threshold for frequencies . : param message_end : closing part of the error message .
function: def _check_threshold(message_end=None):
          """
          Checks threshold for frequencies.
          :param message_end: closing part of the error message.
          """
          from abins.parameters import sampling
  
          freq_threshold = sampling['frequencies_threshold']
          if not (isinstance(freq_threshold, float) and freq_threshold >= 0.0):
              raise RuntimeError("Invalid value of frequencies_threshold" + message_end)
  
          # check s threshold
          s_absolute_threshold = sampling['s_absolute_threshold']
          if not (isinstance(s_absolute_threshold, float) and s_absolute_threshold > 0.0):
              raise RuntimeError("Invalid value of s_absolute_threshold" + message_end)
  
          s_relative_threshold = sampling['s_relative_threshold']
          if not (isinstance(s_relative_threshold, float) and s_relative_threshold > 0.0):
              raise RuntimeError("Invalid value of s_relative_threshold" + message_end)
function_tokens: def _check_threshold ( message_end = None ) : from abins . parameters import sampling freq_threshold = sampling [ 'frequencies_threshold' ] if not ( isinstance ( freq_threshold , float ) and freq_threshold >= 0.0 ) : raise RuntimeError ( "Invalid value of frequencies_threshold" + message_end ) # check s threshold s_absolute_threshold = sampling [ 's_absolute_threshold' ] if not ( isinstance ( s_absolute_threshold , float ) and s_absolute_threshold > 0.0 ) : raise RuntimeError ( "Invalid value of s_absolute_threshold" + message_end ) s_relative_threshold = sampling [ 's_relative_threshold' ] if not ( isinstance ( s_relative_threshold , float ) and s_relative_threshold > 0.0 ) : raise RuntimeError ( "Invalid value of s_relative_threshold" + message_end )