parameters: (data_str)
return_statement: return results
docstring: Parse a C++ rawdata declaration into a list of values.
docstring_summary: Parse a C++ rawdata declaration into a list of values.
docstring_tokens: Parse a C ++ rawdata declaration into a list of values .
function: def convert_rawdata(data_str):
    """Parse a C++ rawdata declaration into a list of values."""
    start = data_str.find('{')
    end = data_str.find('}')
    if end == -1:
      end = len(data_str)
    if start > end:
      raise ValueError("Raw Data not parsible due to parentheses placement.")
    data_str = data_str[start + 1:end]
    results = []
    for timing in [x.strip() for x in data_str.split(',')]:
      try:
        results.append(int(timing))
      except ValueError as non_numeric:
        raise ValueError(
            f"Raw Data contains a non-numeric value of '{timing}'."
            ) from non_numeric
    return results
function_tokens: def convert_rawdata ( data_str ) : start = data_str . find ( '{' ) end = data_str . find ( '}' ) if end == - 1 : end = len ( data_str ) if start > end : raise ValueError ( "Raw Data not parsible due to parentheses placement." ) data_str = data_str [ start + 1 : end ] results = [ ] for timing in [ x . strip ( ) for x in data_str . split ( ',' ) ] : try : results . append ( int ( timing ) ) except ValueError as non_numeric : raise ValueError ( f"Raw Data contains a non-numeric value of '{timing}'." ) from non_numeric return results