Skip to content

off-body Data Error #2

@YsfDemiroglu

Description

@YsfDemiroglu

When the coordinates of the off-body data points are more than two digits, the Python code fails when reading the data in the panair.out file; (In this case, the z-coordinate of the defined line is -115.95)

    data_off = Res.get_offbody_data()
  in get_offbody_data
    return self._output_file.get_offbody_data()
  in get_offbody_data
    data = self._lines_to_numpy(data_lines)
  in _lines_to_numpy
    array = [[float(val) for val in line.split()] for line in data_lines]
  in <listcomp>
    array = [[float(val) for val in line.split()] for line in data_lines]
  in <listcomp>
    array = [[float(val) for val in line.split()] for line in data_lines]
ValueError: could not convert string to float: '0.00000000-115.95000000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions