Skip to content

Commit 7b5c664

Browse files
committed
Merge branch 'split-G2phsGUI' of https://github.com/AdvancedPhotonSource/GSAS-II into split-G2phsGUI
# Conflicts: # GSASII/GSASIIphsGUI.py # GSASII/GSASIIphsGUI2.py revert back & split RMCUpdate into separate file
2 parents 318652c + d29e393 commit 7b5c664

File tree

3 files changed

+1771
-1698
lines changed

3 files changed

+1771
-1698
lines changed

GSASII/GSASIIphsGUI.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
from . import GSASIIplot as G2plt
4242
from . import GSASIIpwdplot as G2pwpl
4343
from . import GSASIIphsGUI2 as G2phsG2
44+
from . import GSASIIrmcGUI as G2rmcG
4445
# if GSASIIpath.GetConfigValue('debug'):
4546
# print('Debug reloading',G2plt)
4647
# import imp
@@ -5862,7 +5863,7 @@ def OnSetupRMC(event):
58625863
if reset:
58635864
wx.MessageDialog(G2frame,' Vacancies found & "Va" atoms added to list. '+ \
58645865
'You may need to revise RMCProfile setup parameters.','Repeat Setup RMC',wx.OK).ShowModal()
5865-
wx.CallAfter(G2phsG2.UpdateRMC,G2frame,data)
5866+
wx.CallAfter(G2rmcG.UpdateRMC,G2frame,data)
58665867
else:
58675868
print('RMCProfile file build failed - no histogram selected')
58685869
G2frame.dataWindow.FRMCDataEdit.Enable(G2G.wxID_RUNRMC,False)
@@ -6121,7 +6122,7 @@ def RunPDFfit(event):
61216122
Error = G2pwd.UpdatePDFfit(data,RMCPdict)
61226123
if Error:
61236124
wx.MessageBox('PDFfit failed',caption='%s not found'%Error[0],style=wx.ICON_EXCLAMATION)
6124-
G2phsG2.UpdateRMC(G2frame,data)
6125+
G2rmcG.UpdateRMC(G2frame,data)
61256126

61266127
def Runfullrmc(event):
61276128
fullrmc_exec = G2pwd.findfullrmc()
@@ -6196,7 +6197,7 @@ def Runfullrmc(event):
61966197
else:
61976198
Proc = subp.Popen(['/bin/bash','fullrmc.sh'])
61986199
# Proc.wait() #for it to finish before continuing on
6199-
G2phsG2.UpdateRMC(G2frame,data)
6200+
G2rmcG.UpdateRMC(G2frame,data)
62006201

62016202
def RunRMCProfile(event):
62026203
generalData = data['General']
@@ -6270,7 +6271,7 @@ def RunRMCProfile(event):
62706271
batch.close()
62716272
subp.Popen(script_file,creationflags=subp.CREATE_NEW_CONSOLE)
62726273
# Proc.wait() #for it to finish before continuing on
6273-
G2phsG2.UpdateRMC(G2frame,data)
6274+
G2rmcG.UpdateRMC(G2frame,data)
62746275

62756276

62766277
def OnRunRMC(event):
@@ -13225,7 +13226,7 @@ def ChangePage(page):
1322513226
G2phsG2.UpdateDysnomia(G2frame,data)
1322613227
elif text == 'RMC':
1322713228
G2gd.SetDataMenuBar(G2frame,G2frame.dataWindow.FRMCMenu)
13228-
G2phsG2.UpdateRMC(G2frame,data)
13229+
G2rmcG.UpdateRMC(G2frame,data)
1322913230
elif text == 'ISODISTORT':
1323013231
G2gd.SetDataMenuBar(G2frame,G2frame.dataWindow.ISODData)
1323113232
G2phsG2.UpdateISODISTORT(G2frame,data)

0 commit comments

Comments
 (0)