check_results.py
def parse_threshold(threshold):
    """
    Inputs:
      - threshold string of the form: start:stop:num_points
    Returns:
      - numpy array of threshold values
    """
    threshold_fmat = r"(?P<start>[\d\.]*):(?P<stop>[\d\.]*):(?P<num_points>\d*)$"
    match = re.search(threshold_fmat, threshold)
    if match is None:
        print("ERROR: invalid threshold specified", file=sys.stderr)
        sys.exit(1)
    try:
        start = float(match.group("start"))
        stop = float(match.group("stop"))
        num_points = int(match.group("num_points"))
    except ValueError as e:
        print("ERROR: invalid threshold specified", file=sys.stderr)
        sys.exit(1)
    return np.linspace(start, stop, num_points)

    Inputs:
      - threshold string of the form: start:stop:num_points
    Returns:
      - numpy array of threshold values
    
threshold string of the form: start:stop:num_points
threshold string of the form : start : stop : num_points
def parse_threshold(threshold):
    threshold_fmat = r"(?P<start>[\d\.]*):(?P<stop>[\d\.]*):(?P<num_points>\d*)$"
    match = re.search(threshold_fmat, threshold)
    if match is None:
        print("ERROR: invalid threshold specified", file=sys.stderr)
        sys.exit(1)
    try:
        start = float(match.group("start"))
        stop = float(match.group("stop"))
        num_points = int(match.group("num_points"))
    except ValueError as e:
        print("ERROR: invalid threshold specified", file=sys.stderr)
        sys.exit(1)
    return np.linspace(start, stop, num_points)
def parse_threshold ( threshold ) : threshold_fmat = r"(?P<start>[\d\.]*):(?P<stop>[\d\.]*):(?P<num_points>\d*)$" match = re . search ( threshold_fmat , threshold ) if match is None : print ( "ERROR: invalid threshold specified" , file = sys . stderr ) sys . exit ( 1 ) try : start = float ( match . group ( "start" ) ) stop = float ( match . group ( "stop" ) ) num_points = int ( match . group ( "num_points" ) ) except ValueError as e : print ( "ERROR: invalid threshold specified" , file = sys . stderr ) sys . exit ( 1 ) return np . linspace ( start , stop , num_points )
Inputs:
 threshold string of the form: start:stop:num_points
Inputs : threshold string of the form : start : stop : num_points
"""
    Inputs:
      - threshold string of the form: start:stop:num_points
    Returns:
      - numpy array of threshold values
    """
numpy array of threshold values
numpy array of threshold values
threshold