Changeset 1962 for trunk/GSASIIIO.py


Ignore:
Timestamp:
Aug 26, 2015 10:00:44 AM (6 years ago)
Author:
vondreele
Message:

made PackageVersions? a list so it comes out in same order as the other list
slight reformatting so appearance is the same as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r1961 r1962  
    10051005                if datum[0] == 'Controls' and 'PythonVersions' in datum[1] and GSASIIpath.GetConfigValue('debug'):
    10061006                    print('Packages used to create .GPX file:')
    1007                     for p in sorted(datum[1]['PythonVersions'],key=lambda s: s.lower()):
    1008                         print("{:>14s}: {:s}".format(p,datum[1]['PythonVersions'][p]))
     1007                    if 'dict' in str(type(datum[1]['PythonVersions'])):  #patch
     1008                        for p in sorted(datum[1]['PythonVersions'],key=lambda s: s.lower()):
     1009                            print("{:>14s}: {:s}".format(p[0],p[1]))
     1010                    else:
     1011                        for p in datum[1]['PythonVersions']:
     1012                            print("{:<12s} {:s}".format(p[0]+':',p[1]))
    10091013            for datus in data[1:]:
    10101014                sub = G2frame.PatternTree.AppendItem(Id,datus[0])
Note: See TracChangeset for help on using the changeset viewer.