Changeset 1125 for trunk/GSASIIElem.py


Ignore:
Timestamp:
Oct 28, 2013 3:32:05 PM (8 years ago)
Author:
vondreele
Message:

StructureFactor2 does SF calculation for entire block of reflection - see substantial speed gains in some cases.
The old StructureFactor? routine is left in as a reference - modified form factor stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIElem.py

    r967 r1125  
    100100    return FFvals
    101101   
    102 def getBLvalues(BLtables):
     102def getBLvalues(BLtables,ifList=False):
    103103    'Needs a doc string'
    104     BLvals = {}
    105     for El in BLtables:
    106         BLvals[El] = BLtables[El][1][1]
     104    if ifList:
     105        BLvals = []
     106        for El in BLtables:
     107            BLvals.append(BLtables[El][1][1])
     108    else:
     109        BLvals = {}
     110        for El in BLtables:
     111            BLvals[El] = BLtables[El][1][1]
    107112    return BLvals
    108113       
Note: See TracChangeset for help on using the changeset viewer.