Changeset 5029 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Sep 22, 2021 5:26:46 PM (2 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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):
Note: See TracChangeset for help on using the changeset viewer.