Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

off-body Data Error #2

Open
YsfDemiroglu opened this issue Aug 30, 2021 · 1 comment
Open

off-body Data Error #2

YsfDemiroglu opened this issue Aug 30, 2021 · 1 comment

Comments

@YsfDemiroglu
Copy link

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
@corygoates
Copy link
Member

Did you follow the recommendation for updating the output precision from PAN AIR? We may just need to update that recommendation with a better format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants