-
Notifications
You must be signed in to change notification settings - Fork 9
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
End to end tests incompatible with - Vectorization of xrd_simulator #9 #11
Comments
While testing the above example(powder diffraction) , first I get Numba - Numpy version mismatch error. Once that is fixed by downgrading numpy, I get the following error: { File ~/miniconda3/envs/xrd_sim_conda__py3.10/lib/python3.10/site-packages/xrd_simulator/templates.py:169, in polycrystal_from_odf(orientation_density_function, number_of_crystals, sample_bounding_cylinder_height, sample_bounding_cylinder_radius, unit_cell, sgname, path_to_cif_file, maximum_sampling_bin_seperation, strain_tensor) File ~/miniconda3/envs/xrd_sim_conda__py3.10/lib/python3.10/site-packages/xrd_simulator/templates.py:293, in _sample_ODF(ODF, maximum_sampling_bin_seperation, coordinates) TypeError: unsupported operand type(s) for /: 'function' and 'float'" |
Thanks for the stackstrace. ❤️ This bug 🐛 reproduced nicely on a Windows machine building from source for me. Simple syntax drift that could be fixed rapidly. Now closing with latest updates in commit 21e58b6 which should fix all of this. 10000 tetra mesh grains generated using a custom ODF can be viewed below (see Cheers |
Thanks for working on this! I'm able to get the Debye-Scherrer rings. Meanwhile, may I ask how did you generate/plot the figure on right? Thanks, |
Hi! I use Paraview for visualizing the samples. 🙂 When you call .save() on a polycrystal object, there is a .xdmf getting written to disk. This file can be opened in paraview and different element attributes can be used to color the tets (like one of the bunge Euler angles as was done above) In the mentioned example the polycrystal is written to the "save" folder. Check it out 😎 ! Cheers |
Thanks Axel! 🙂 |
Thanks for the kind words and the debugging! I am currently in paternity leave so no more coding until mid September! Cheers! |
The awesome vectorization work 💪 🔨 of @Marcraven would be awesome to propagate to the end to test and examples of
xrd_simulator
.It would seem that all that is required is to propagate the slightly changed call signatures into the scripts in
tests/end_to_end_tests
. There was recently interest in the powder diffraction example so perhaps start there. 🙂Cheers
Axel
The text was updated successfully, but these errors were encountered: