Hi everyone,
I tried one of the cmi_exchange tutorial examples for calculating C60 PDF.
Could you please teach me how to save the calculated PDF in two column txt file in Diffpy-CMI?
The script I am using is:
######################################################
from diffpy.Structure import loadStructure
from diffpy.srreal.pdfcalculator import DebyePDFCalculator
from matplotlib.pyplot import plot, show
c60 = loadStructure('c60.stru')
dpc = DebyePDFCalculator()
dpc.qmax = 20
dpc.rmax = 20
r3, g3 = dpc(c60, qmin=0)
r4, g4 = dpc(c60, qmin=1)
plot(r3, g3, r4, g4)
show()
##########################################################
Thank you very much for your help!
--
You received this message because you are subscribed to the Google Groups "diffpy-users" group.
To unsubscribe from this group and stop receiving emails from it, 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.
Traceback (most recent call last):
File "c60.py", line 18, in <module>
data = numpy.column_stack([r3, g3])
NameError: name 'numpy' is not defined