Changeset 5029


Ignore:
Timestamp:
Sep 22, 2021 5:26:46 PM (18 months ago)
Author:
vondreele
Message:

upper limit on crystallite size = 10 (it was 4)
consolidate import subprocess as subp (remove the extra imports)
minor change to MakeInst? for bug in RMCProfile 6.7.9

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIddataGUI.py

    r5025 r5029  
    957957                isoSizer.Add(ResetSizer('isotropic',OnResetSize),0,WACV)
    958958                bottomSizer.Add(isoSizer)
    959                 bottomSizer.Add(IsoSizer(u'size(\xb5m): ','Size',(10,4),[0.,4.],OnSizeRef),0,wx.BOTTOM,5)
     959                bottomSizer.Add(IsoSizer(u'size(\xb5m): ','Size',(10,4),[0.,10.],OnSizeRef),0,wx.BOTTOM,5)
    960960            elif UseList[G2frame.hist]['Size'][0] == 'uniaxial':
    961961                uniSizer = wx.BoxSizer(wx.HORIZONTAL)
     
    966966                bottomSizer.Add(UniSizer('Size',OnSizeAxis),0)
    967967                bottomSizer.Add(uniSizer)
    968                 bottomSizer.Add(UniDataSizer(u'size(\xb5m): ','Size',(10,3),[0.,4.],OnSizeRef),0,wx.BOTTOM,5)
     968                bottomSizer.Add(UniDataSizer(u'size(\xb5m): ','Size',(10,3),[0.,10.],OnSizeRef),0,wx.BOTTOM,5)
    969969            elif UseList[G2frame.hist]['Size'][0] == 'ellipsoidal':
    970970                ellSizer = wx.BoxSizer(wx.HORIZONTAL)
  • trunk/GSASIIphsGUI.py

    r4998 r5029  
    58435843                    break
    58445844                ilog += 1
    5845             import subprocess as sb
    58465845            if sys.platform.lower().startswith('win'):
    58475846                batch = open('fullrmc.bat','w')
     
    58505849                batch.write('pause')
    58515850                batch.close()
    5852                 sb.Popen('fullrmc.bat',creationflags=sb.CREATE_NEW_CONSOLE)
     5851                subp.Popen('fullrmc.bat',creationflags=subp.CREATE_NEW_CONSOLE)
    58535852            else:
    58545853                batch = open('fullrmc.sh','w')
     
    58685867                else:
    58695868                    # TODO: better to create this in a new terminal on Linux
    5870                     sb.Popen(['/bin/bash','fullrmc.sh'])
     5869                    subp.Popen(['/bin/bash','fullrmc.sh'])
    58715870        else:
    58725871            pName = generalData['Name'].replace(' ','_')
     
    59155914            G2frame.OnFileSave(event)
    59165915            print (' GSAS-II project saved')
    5917             import subprocess as sb
    59185916            generalData = data['General']
    59195917            pName = generalData['Name'].replace(' ','_')
     5918            exstr = rmcexe+'\\rmcprofile.exe '+pName
    59205919            batch = open('runrmc.bat','w')
    59215920            batch.write('Title RMCProfile\n')
    5922             batch.write(rmcexe+'\\rmcprofile.exe '+pName+'\n')
     5921            batch.write(exstr+'\n')
    59235922            batch.write('pause\n')
    59245923            batch.close()
    5925             sb.Popen('runrmc.bat',creationflags=sb.CREATE_NEW_CONSOLE)
     5924            subp.Popen('runrmc.bat',creationflags=subp.CREATE_NEW_CONSOLE)
    59265925           
    59275926    def OnStopRMC(event):
  • trunk/GSASIIpwd.py

    r5021 r5029  
    24302430        fl.write('%12.6e%14.6e%14.6e\n'%(inst[prms[8]][1],inst[prms[9]][1],inst[prms[10]][1]))   
    24312431        fl.write('%12.6e%14.6e%14.6e%14.6e%14.6e\n'%(inst[prms[11]][1],inst[prms[12]][1]+Ysb,inst[prms[13]][1]+Xsb,0.0,0.0))
     2432        fl.write('\n\n\n')
    24322433        fl.close()
    24332434    else:
Note: See TracChangeset for help on using the changeset viewer.