Ignore:
Timestamp:
Jun 18, 2018 11:35:30 AM (5 years ago)
Author:
vondreele
Message:

g2strIO
fix magnetic hkl extinctions in reflection generation
remove Uniq & Phi - never used
change all config 'debug' out put to have 'DBG' in message - many places
fix phoenix decode problem for Comments
Display transformation math on Transform dialog box & labels on matrix & vectors
use a general exception in getSelection (G2plot line 7141) to avoid crashes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIctrlGUI.py

    r3426 r3438  
    171171    for arg in args:
    172172        if GSASIIpath.GetConfigValue('debug') and not arg.startswith('wxID_'):
    173             print ('Problem in name'+arg)
     173            print ('DBG_Problem in name'+arg)
    174174        if arg in globals():
    175             if GSASIIpath.GetConfigValue('debug'): print (arg+'already defined')
     175            if GSASIIpath.GetConfigValue('debug'): print ('DBG_'+arg+'already defined')
    176176            continue
    177177        exec('global '+arg+';'+arg+' = wx.NewId()')
     
    30583058            return G2frame.TutorialImportDir
    30593059        elif GSASIIpath.GetConfigValue('debug'):
    3060             print('Tutorial location (TutorialImportDir) not found: '+G2frame.TutorialImportDir)
     3060            print('DBG_Tutorial location (TutorialImportDir) not found: '+G2frame.TutorialImportDir)
    30613061    pth = GSASIIpath.GetConfigValue('Import_directory')
    30623062    if pth:
     
    30713071            return G2frame.LastImportDir
    30723072        elif GSASIIpath.GetConfigValue('debug'):
    3073             print('Warning: G2frame.LastImportDir not found = '+G2frame.LastImportDir)
     3073            print('DBG_Warning: G2frame.LastImportDir not found = '+G2frame.LastImportDir)
    30743074    return None
    30753075
     
    41154115        try:
    41164116            helpKey = dW.helpKey # look up help from helpKey in data window
    4117             #if GSASIIpath.GetConfigValue('debug'): print 'dataWindow help: key=',helpKey
     4117            #if GSASIIpath.GetConfigValue('debug'): print 'DBG_dataWindow help: key=',helpKey
    41184118        except AttributeError:
    41194119            helpKey = ''
    4120             if GSASIIpath.GetConfigValue('debug'): print('No helpKey for current dataWindow!')
     4120            if GSASIIpath.GetConfigValue('debug'): print('DBG_No helpKey for current dataWindow!')
    41214121        helpType = self.HelpById.get(event.GetId(),helpKey) # see if there is a special help topic
    4122         #if GSASIIpath.GetConfigValue('debug'): print 'helpKey=',helpKey,'  helpType=',helpType
     4122        #if GSASIIpath.GetConfigValue('debug'): print 'DBG_helpKey=',helpKey,'  helpType=',helpType
    41234123        if helpType == 'Tutorials':
    41244124            dlg = OpenTutorial(self.frame)
     
    44794479    try:
    44804480        vars['Starting_directory'][1] = path
    4481         if GSASIIpath.GetConfigValue('debug'): print('Saving GPX path: '+path)
     4481        if GSASIIpath.GetConfigValue('debug'): print('DBG_Saving GPX path: '+path)
    44824482        SaveConfigVars(vars)
    44834483    except KeyError:
     
    44894489    try:
    44904490        vars['Import_directory'][1] = path
    4491         if GSASIIpath.GetConfigValue('debug'): print('Saving Import path: '+path)
     4491        if GSASIIpath.GetConfigValue('debug'): print('DBG_Saving Import path: '+path)
    44924492        SaveConfigVars(vars)
    44934493    except KeyError:
     
    49234923        if sys.platform.lower().startswith('win'):
    49244924            pfx = ''
    4925         #if GSASIIpath.GetConfigValue('debug'): print 'Help link=',pfx+helplink
     4925        #if GSASIIpath.GetConfigValue('debug'): print 'DBG_Help link=',pfx+helplink
    49264926        if htmlFirstUse:
    49274927            wb.open_new(pfx+helplink)
     
    53625362        try:
    53635363            vars['Tutorial_location'][1] = pth
    5364             if GSASIIpath.GetConfigValue('debug'): print('Saving Tutorial_location: '+pth)
     5364            if GSASIIpath.GetConfigValue('debug'): print('DBG_Saving Tutorial_location: '+pth)
    53655365            GSASIIpath.SetConfigValue(vars)
    53665366            SaveConfigVars(vars)
Note: See TracChangeset for help on using the changeset viewer.