Changeset 2532 for trunk/GSASII.py


Ignore:
Timestamp:
Nov 17, 2016 2:43:50 PM (5 years ago)
Author:
vondreele
Message:

clean up display of version info. etc. on console.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r2531 r2532  
    39893989            except:
    39903990                pass
    3991         self.main.PackageVersions.append([' Platform',sys.platform+' '+platform.architecture()[0]+' '+platform.machine()])
     3991        self.main.PackageVersions.append(['Platform',sys.platform+' '+platform.architecture()[0]+' '+platform.machine()])
    39923992       
    39933993        return True
     
    40194019    # print versions
    40204020    print "Python module versions loaded:"
    4021     print "python:     ",sys.version.split()[0]
    4022     print "wxpython:   ",wx.__version__
    4023     print "matplotlib: ",mpl.__version__
    4024     print "numpy:      ",np.__version__
    4025     print "scipy:      ",sp.__version__
    4026     print "OpenGL:     ",ogl.__version__
     4021    print "  Python:     ",sys.version.split()[0]
     4022    print "  wx:         ",wx.__version__
     4023    print "  matplotlib: ",mpl.__version__
     4024    print "  numpy:      ",np.__version__
     4025    print "  scipy:      ",sp.__version__
     4026    print "  OpenGL:     ",ogl.__version__
    40274027    try:
    40284028        from PIL import Image
     
    40324032        except:
    40334033            version = Image.VERSION
    4034         print "pillow:     ",version
     4034        print "  PIL.Image:  ",version
    40354035    except ImportError:
    40364036        try:
     
    40394039        except ImportError:
    40404040            print "Image module not present; Note that PIL (Python Imaging Library) or pillow is needed for some image operations"
     4041    import platform
     4042    print "  Platform:   ",sys.platform,platform.architecture()[0],platform.machine()
    40414043    try:
    40424044        import mkl
    4043         print "Max threads ",mkl.get_max_threads()
     4045        print "  Max threads:",mkl.get_max_threads()
    40444046    except:
    40454047        pass
    4046     import platform
    4047     print "Platform info:",sys.platform,platform.architecture()[0],platform.machine()
    40484048    #print "wxPython description",wx.PlatformInfo
    4049     print "This is GSAS-II version:     ",__version__,' revision #'+str(GSASIIpath.GetVersionNumber())
     4049    print "This is GSAS-II revision "+str(GSASIIpath.GetVersionNumber())+'\n'
    40504050    GSASIIpath.InvokeDebugOpts()
    40514051    main() # start the GUI
Note: See TracChangeset for help on using the changeset viewer.