Changeset 4209


Ignore:
Timestamp:
Dec 17, 2019 5:22:58 AM (21 months ago)
Author:
vondreele
Message:

Add file dialog to help with RMCProfile View option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r4206 r4209  
    47524752            generalData = data['General']
    47534753            pName = generalData['Name'].replace(' ','_')
     4754            dlg = wx.FileDialog(G2frame, "Choose any RMCProfile csv results file for "+pName+":",
     4755                style=wx.FD_CHANGE_DIR,wildcard='RMCProfile result csv files|'+pName+'*.csv')
     4756            if dlg.ShowModal() == wx.ID_OK:
     4757                path = os.path.split(dlg.GetPath())[0]
     4758                dlg.Destroy()
     4759            else:
     4760                dlg.Destroy()
     4761                return
     4762           
    47544763            files =  {'_PDF1.csv':[],'_PDFpartials.csv':[],'_SQ1.csv':[],'_XFQ1.csv':[],
    47554764                      '_SQ1partials.csv':[],'_FQ1.csv':[],'_FT_XFQ1.csv':[],
    47564765                      '_FQ1partials.csv':[],'_bragg.csv':[],'.chi2':[]}
    47574766            for item in files:
    4758                 if os.path.exists(pName+item):
     4767                if os.path.exists(os.path.join(path,pName+item)):
    47594768                    OutFile = open(pName+item,'r')
    47604769                    files[item] = OutFile.readlines()
Note: See TracChangeset for help on using the changeset viewer.