Ignore:
Timestamp:
Nov 22, 2019 1:28:42 PM (3 years ago)
Author:
vondreele
Message:

fix OnFileReopen?; broke when some file were deleted beforehand
Some preliminaries for rmc stuff
allow use of default instrument parameters upon Load command - same idea; cancel brings up default list choice

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r4191 r4192  
    29052905        self.newGPXfile = ''
    29062906        self.lastSelectedPhaseTab = None # track the last tab pressed on a phase window
    2907         self.testRBObjSizers = {}   #rigid body sizer data
     2907        self.testRBObjSizers = {}   #rigid body sizer datafile contents
     2908        self.RMCchoice = 'fullrmc'
    29082909       
    29092910    def __init__(self, parent):
     
    38173818            dlg.Destroy()
    38183819            return
    3819         f = files[sel]
     3820        filroot,dirname = sellist[sel].split(' from ')
     3821        f = os.path.join(dirname,filroot)
    38203822        if os.path.exists(f):
    38213823            self.OnFileOpen(event, filename=f)
     
    57055707        self.PostfillDataMenu()
    57065708       
    5707         #Phase / fullrmc (Reverse Monte Carlo method) tab
    5708         G2G.Define_wxId('wxID_SETUPFULLRMC','wxID_LOADFULLRMC','wxID_SAVEFULLRMC','wxID_EDITFULLRMC','wxID_RUNFULLRMC', )       
     5709        #Phase / fullrmc & RMCprofile (Reverse Monte Carlo method) tab
     5710        G2G.Define_wxId('wxID_SETUPRMC','wxID_LOADRMC','wxID_SAVERMC','wxID_RUNRMC', )       
    57095711        self.FRMCMenu = wx.MenuBar()
    57105712        self.PrefillDataMenu(self.FRMCMenu)
     
    57125714        self.FRMCDataEdit = wx.Menu(title='')
    57135715        self.FRMCMenu.Append(menu=self.FRMCDataEdit, title='Operations')
    5714         self.FRMCDataEdit.Append(G2G.wxID_SETUPFULLRMC,'Setup run.py','Setup new fullrmc run.py file')
    5715         self.FRMCDataEdit.Append(G2G.wxID_LOADFULLRMC,'Load run.py','Load fullrmc run.py file')
    5716         self.FRMCDataEdit.Append(G2G.wxID_SAVEFULLRMC,'Save run.py','Save fullrmc run.py file')
    5717         self.FRMCDataEdit.Append(G2G.wxID_EDITFULLRMC,'Edit run.py','Edit fullrmc run.py file')
    5718         self.FRMCDataEdit.Append(G2G.wxID_RUNFULLRMC,'Execute run.py','Run fullrmc run.py file')
     5716        self.FRMCDataEdit.Append(G2G.wxID_SETUPRMC,'Setup RMC','Setup new fullrmc or RMCprofile file')
     5717        self.FRMCDataEdit.Append(G2G.wxID_LOADRMC,'Load','Load fullrmc or RMCprofile file')
     5718        self.FRMCDataEdit.Append(G2G.wxID_SAVERMC,'Save','Save fullrmc or RMCprofile file')
     5719        self.FRMCDataEdit.Append(G2G.wxID_RUNRMC,'Execute','Run fullrmc or RMCprofile file')
    57195720        self.PostfillDataMenu()
    57205721       
Note: See TracChangeset for help on using the changeset viewer.