I just uploaded a new pre-release diffpy-1.0b.1309 to www.diffpy.org.
This version implements isotopes in pdfgui and pdffit2, where the
syntax is NucleonNumber-Symbol, for example "7-Li". There is an
exception for deuterium and tricium, which have symbols "D"
and "T". See the attached file for a complete list of available
isotopes.
The new release should also fix windows crash which occured on
running the temperature series example from the tutorial.
Cheers,
Pavol
Pavol
On Tue, Sep 24, 2019 at 4:41 PM Robert Koch rkoc...@gmail.com wrote:
…
I know this is an old post, but can CMI handle different isotopes in
the structure objects? If so, could you share the syntax?
Hi Rob,
Yes, CMI can handle all isotope symbols known to PDFgui, more specifically
all isotopes provided in the nsftable.dat data file; just replace “2-He-4” with “4-He” etc.
This can be checked using
from diffpy.srreal.scatteringfactortable import SFTNeutron
ntb = SFTNeutron()
ntb.lookup('4-He')
Note that you can define your own aliases for recognized isotopes, for example
ntb.setCustomAs('helium', 'He')
ntb.lookup('helium')
For PDF calculation you need to set the scatteringfactortable
component of PDFCalculator with a neutron one:
from diffpy.structure import loadStructure
from diffpy.srreal.pdfcalculator import PDFCalculator
stru = loadStructure('some.cif')
pdfc = PDFCalculator()
pdfc.scatteringfactortable = ntb
## also works
# pdfc.scatteringfactortable = "neutron"
r, g = pdfc(stru)
Hope this helps,
Pavol
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/diffpy-users/b62df562-d644-449a-886e-7aea269f8a9b%40googlegroups.com.
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/7nu23l7OY8A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to diffpy-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/diffpy-users/CAPeYTWvJjzunT_1vzzNoT17E6fdg6_z-NBGso%2BYyFvgspQuvBA%40mail.gmail.com.