Reflectors (RuntimeWarning: invalid value encountered in divide) #680
-
Dear all, Thank you in advance,
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Dear all, I'm now using the code below to keep the reflectors with the highest structure factors. However, I got the following error, and it seems that the calculation of the structure factors it is incorrect as they pass from nan to 0.0. Thank you in advance, /home/effetticollaterali/.local/lib/python3.8/site-packages/diffsims/crystallography/reciprocal_lattice_vector.py:885: RuntimeWarning: invalid value encountered in divide INPUT
OUTPUT lattice=Lattice(a=2.87, b=2.87, c=2.87, alpha=90, beta=90, gamma=90) |
Beta Was this translation helpful? Give feedback.
-
Dear all, I solved the problem, that was in the atom definition, I was using "fe" instead of "Fe". |
Beta Was this translation helpful? Give feedback.
Dear all, I solved the problem, that was in the atom definition, I was using "fe" instead of "Fe".