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

Feature/save to ascii bugfix #229

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

JBil8
Copy link

@JBil8 JBil8 commented Nov 1, 2024

Manually converting np.floats to standard python floats before converting to tuple and saving to ascii.
Previous code saved stl with np.float(...) making it unreadbla to stl readers.

tbaudier and others added 2 commits September 19, 2024 17:05
With numpy>=2.0.0, tuple(vectors[0]) returns the type of the number (eg: np.float64()) instead of the number
Adding .tolist() to the vector converts the vector to a python list and could be printed.
Work also with numpy <2.0.0
…np.float, making it readable by other softwares
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.

2 participants