Skip to content

Fix nastran-specific float to string conversion#1519

Open
LouisSchreyer wants to merge 1 commit into
nschloe:mainfrom
LouisSchreyer:dev_fix_nastran
Open

Fix nastran-specific float to string conversion#1519
LouisSchreyer wants to merge 1 commit into
nschloe:mainfrom
LouisSchreyer:dev_fix_nastran

Conversation

@LouisSchreyer

Copy link
Copy Markdown

function meshio.nastran._nastran._float_to_nastran_string throws an error for negative floating point numbers like, e.g., -1.12345678901 as the additional neg. sign causes a violation of the assert statement (line 416).
This leads to an error when exporting a mesh in Nastran format.
The problem can be circumvented by reducing the precision for negative floating-point numbers.

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

Successfully merging this pull request may close these issues.

1 participant