Changeset 4241 for trunk/GSASIIpwdGUI.py


Ignore:
Timestamp:
Jan 9, 2020 3:21:38 PM (3 years ago)
Author:
toby
Message:

fix for reading .pwdrbck files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwdGUI.py

    r4201 r4241  
    12431243                if S[0] == '#':    #skip the heading
    12441244                    S = File.readline()     #should contain the std. bck fxn
    1245                 newback[0] = eval(S[:-1])
     1245                newback[0] = eval(S.strip())
    12461246                S = File.readline()               
    12471247                while S and ':' in S:
    1248                     [item,vals] = S[:-1].split(':')
     1248                    item,vals = S.strip().split(':')
    12491249                    if item in ['nPeaks','nDebye']:
    12501250                        newback[1][item] = int(vals)
     
    12541254                        newback[1][item] = []
    12551255                        S = File.readline()
    1256                         while ':' not in S:
    1257                             newback[1][item].append(eval(S[:-1]))
     1256                        while S and ':' not in S:
     1257                            newback[1][item].append(eval(S.strip()))
    12581258                            S = File.readline()
    12591259                        else:
Note: See TracChangeset for help on using the changeset viewer.