Changeset 4629 for trunk


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

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

Location:
trunk
Files:
2 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])
  • trunk/GSASIIstrIO.py

    r4628 r4629  
    720720            G2fil.G2Print ('GPX file save failed - old version retained',mode='error')
    721721            return
     722       
     723    infile.close()
     724    outfile.close()
    722725           
    723726    G2fil.G2Print ('GPX file save successful')
Note: See TracChangeset for help on using the changeset viewer.