Then, I tried to calculate the gold PDF without success. I tried different Au cif files, thinking this might be the problem, but nop.
The gold cif files tried are: 9012953.cif, 9013035.cif, and 1100138.cif.
The result for the gold (r,g) plot was a straight line, downward slope, from 0 to -15, instead of the PDF for Au?
Please, would someone know how to solve this?
I've copied the code below, in case it helps.
Thanks in advance, Beatriz.
from diffpy.Structure import loadStructure
from diffpy.srreal.pdfcalculator import PDFCalculator
from matplotlib.pyplot import plot, show
TiO2 = loadStructure('TiO2_9004141.cif')
pc1 = PDFCalculator()
pc1.rmax = 20
r1, g1 = pc1(TiO2)
plot(r1, g1)
show()
Au = loadStructure('9012953.cif')
pc1 = PDFCalculator()
pc1.rmax = 20
r2, g2 = pc1(Au)
plot(r2, g2)
show()
Hi, Pavol,
Both options worked!
Many thanks! :-)
Beatriz
--
You received this message because you are subscribed to a topic in the Google Groups "diffpy-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/diffpy-users/MhC3Fyle2JM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to diffpy-users...@googlegroups.com.
To post to this group, send email to diffpy...@googlegroups.com.
Visit this group at http://groups.google.com/group/diffpy-users.
For more options, visit https://groups.google.com/d/optout.