8000 Modified sphere generation using a numpy random generator instead of python built-in `random()` function by ricardo0115 · Pull Request #35 · 3MAH/microgen · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Modified sphere generation using a numpy random generator instead of python built-in random() function #35

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

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

ricardo0115
Copy link
Collaborator

During PR #26 in commit 352b517, an undeterministic behavior has been added in
the generate() method of Sphere class. A random creation direction axis of the sphere is used as workaround to a bug of OpenCascade related to this issue CadQuery/cadquery#1461

In order to provide a deterministic behavior in sphere generation. A numpy random generator with a fixed seed is used instead of the built-in python random() function.

In order to provide a deterministic behavior in sphere generation,
A numpy random generator with a fixed seed is used in generate method
@ricardo0115 ricardo0115 requested a review from kmarchais March 11, 2024 14:58
@kmarchais
Copy link
Member

Thanks!

@kmarchais kmarchais merged commit bd0b449 into main Mar 11, 2024
@kmarchais kmarchais deleted the sphere_generation_deterministic branch March 11, 2024 15:16
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
2919
0