def _parse_data_array(self, data_array):
        """
        Parses a general DataArray.
        """
        # decimalSeparator = data_array.encoding.decimalSeparator
        tokenSeparator = data_array.encoding.tokenSeparator
        blockSeparator = data_array.encoding.blockSeparator
        # collapseWhiteSpaces = data_array.encoding.collapseWhiteSpaces

        data_values = data_array.values
        lines = [x for x in data_values.split(blockSeparator) if x != ""]

        ret_val = []

        for row in lines:
            values = row.split(tokenSeparator)
            ret_val.append(
                [
                    float(v)
                    if " " not in v.strip()
                    else [float(vv) for vv in v.split()]
                    for v in values
                ]
            )

        # transpose into columns
        return [list(x) for x in zip(*ret_val)]
def _parse_data_array ( self , data_array ) : tokenSeparator = data_array . encoding . tokenSeparator blockSeparator = data_array . encoding . blockSeparator data_values = data_array . values lines = [ x for x in data_values . split ( blockSeparator ) if x != "" ] ret_val = [ ] for row in lines : values = row . split ( tokenSeparator ) ret_val . append ( [ float ( v ) if " " not in v . strip ( ) else [ float ( vv ) for vv in v . split ( ) ] for v in values ] ) return [ list ( x ) for x in zip ( * ret_val ) ]
Parses a general DataArray.