Changeset 4629 for trunk/GSASIIElem.py


Ignore:
Timestamp:
Oct 28, 2020 1:48:07 PM (12 months ago)
Author:
vondreele
Message:

GetXsectionCoeff? - remove a 'U' from an open - deprecated
close infile & outfile in SetUsedHistogramsAndPhases?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIElem.py

    r4254 r4629  
    161161    Els = Pair.strip().split('-')
    162162    iAt = atSeq.index(Els[0])
    163     jAt = atSeq.index(Els[1])
    164163    iVal = Valences[iAt][0]
    165164    if Els[1] in ['O','F','Cl']:
     
    282281    filename = os.path.join(os.path.split(__file__)[0],'Xsect.dat')
    283282    try:
    284         xsec = open(filename,'Ur')
     283        xsec = open(filename,'r')
    285284    except:
    286285        print ('**** ERROR - File Xsect.dat not found in directory %s'%os.path.split(filename)[0])
Note: See TracChangeset for help on using the changeset viewer.