Changeset 967 for trunk/GSASIIElem.py


Ignore:
Timestamp:
Jun 24, 2013 12:21:37 PM (8 years ago)
Author:
vondreele
Message:

periodic table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIElem.py

    r942 r967  
    8888    return BLtable
    8989       
    90 def getFFvalues(FFtables,SQ):
     90def getFFvalues(FFtables,SQ,ifList=False):
    9191    'Needs a doc string'
    92     FFvals = {}
    93     for El in FFtables:
    94         FFvals[El] = ScatFac(FFtables[El],SQ)[0]
     92    if ifList:
     93        FFvals = []
     94        for El in FFtables:
     95            FFvals.append(ScatFac(FFtables[El],SQ)[0])
     96    else:
     97        FFvals = {}
     98        for El in FFtables:
     99            FFvals[El] = ScatFac(FFtables[El],SQ)[0]
    95100    return FFvals
    96101   
Note: See TracChangeset for help on using the changeset viewer.