Changeset 2196 for trunk/GSASIIIO.py


Ignore:
Timestamp:
Apr 5, 2016 5:24:38 PM (6 years ago)
Author:
toby
Message:

redo plot window graphics to redraw after refinement (need to update more plotting routines & save plot zoom stack, etc.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r2167 r2196  
    762762        return head,data,Npix,image
    763763       
    764 def ProjFileOpen(G2frame):
     764def ProjFileOpen(G2frame,showProvenance=True):
    765765    'Read a GSAS-II project file and load into the G2 data tree'
    766766    if not os.path.exists(G2frame.GSASprojectfile):
     
    770770    LastSavedUsing = None
    771771    file = open(G2frame.GSASprojectfile,'rb')
    772     print 'load from file: ',G2frame.GSASprojectfile
     772    if showProvenance: print 'loading from file: ',G2frame.GSASprojectfile
    773773    G2frame.SetTitle("GSAS-II data tree: "+
    774774                     os.path.split(G2frame.GSASprojectfile)[1])
     
    795795                if datum[0] == 'Controls' and 'LastSavedUsing' in datum[1]:
    796796                    LastSavedUsing = datum[1]['LastSavedUsing']
    797                 if datum[0] == 'Controls' and 'PythonVersions' in datum[1] and GSASIIpath.GetConfigValue('debug'):
     797                if datum[0] == 'Controls' and 'PythonVersions' in datum[1] and GSASIIpath.GetConfigValue('debug') and showProvenance:
    798798                    print('Packages used to create .GPX file:')
    799799                    if 'dict' in str(type(datum[1]['PythonVersions'])):  #patch
Note: See TracChangeset for help on using the changeset viewer.