Changeset 1713 for trunk/GSASII.py


Ignore:
Timestamp:
Mar 16, 2015 11:03:41 AM (7 years ago)
Author:
vondreele
Message:

fix problems with imports of old TOF data; bank nos. now are as given in parm/data file rather than starting with 1...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r1706 r1713  
    943943        IparmS = {}
    944944        for key in Iparm:
    945             if key[4:6] == "  ":
    946                 IparmS[key] = Iparm[key]
    947             elif int(key[4:6].strip()) == bank:
    948                 IparmS[key[:4]+' 1'+key[6:]] = Iparm[key]
     945            if 'INS' in key[:3]:    #skip around rubbish lines in some old iparm files
     946                if key[4:6] == "  ":
     947                    IparmS[key] = Iparm[key]
     948                elif int(key[4:6].strip()) == bank:
     949                    IparmS[key[:4]+' 1'+key[6:]] = Iparm[key]
    949950        rd.instbank = bank
    950951        return IparmS
Note: See TracChangeset for help on using the changeset viewer.