Closed marcoscleison closed 6 years ago
The problem is that the CIF parser does not treat/read correctly the oxidation state of the elements. I will look into that.
commit 24cf42bb1286b46a0618e63e984467d17ac214b0 should fix the described issue. So when you install the newest GIT master it should work.
The solution is not ideal, but should work. The problem with the oxidation states in the cif files is that not for all different oxidation states the corresponding atomic scattering factors are tabulated. In your case for Oxygen the neutral atom is used which is indicated when reading the file. Let me know if this solution is acceptable!
you could slightly simplify your code by using
bfo = xu.materials.Crystal.fromCIF("BFO.cif")
@dkriegner thank you very much! I will test it.
I am trying to simulate the powder x-ray pattern from a COD cif.
My python code is grab from internet:
My cif test if from COD database:
This gives an Output error:
When I remove the + sign of the chage in the cif, the library works.
Please, guide me to solve this issue. Congratulation for the work and thanks for the attention.