isotopes added to pdfgui

87 views
Skip to first unread message

Pavol Juhas

unread,
Jun 18, 2007, 10:52:31 AM6/18/07
to DiffPy users, Ashfia Huq
Hi all,

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

diffpy-isotopes.txt

Pavol Juhas

unread,
Jun 22, 2007, 2:19:04 PM6/22/07
to diffpy...@googlegroups.com
Small update - deuterium and tricium can now be specified also with
standard PDFgui isotope symbols "2-H" or "3-H". We will be releasing
for general public soon.

Pavol

Robert Koch

unread,
Sep 24, 2019, 4:41:44 PM9/24/19
to diffpy-users
Hi Pavol,

I know this is an old post, but can CMI handle different isotopes in the structure objects? If so, could you share the syntax?

Thanks!
Rob

Pavol Juhas

unread,
Sep 24, 2019, 7:06:16 PM9/24/19
to DiffPy users

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

Peter Metz

unread,
Sep 26, 2019, 1:15:22 PM9/26/19
to diffpy...@googlegroups.com
I think you canv look up currently supported isotopes in the neutron scattering table

from diffpy.srreal.scatteringfactortable import SFTXray, SFTNeutron

-Peter

--
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.

Robert Koch

unread,
Sep 26, 2019, 1:21:54 PM9/26/19
to diffpy...@googlegroups.com
Got it working, thanks Peter and Pavol!

Rob

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.
Reply all
Reply to author
Forward
0 new messages