Changeset 5096
- Timestamp:
- Nov 22, 2021 10:38:52 AM (2 years ago)
- Location:
- trunk
- Files:
-
- 13 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIfiles.py
r5071 r5096 393 393 pkg = os.path.splitext(os.path.split(filename)[1])[0] 394 394 if pkg in import_files: 395 G2Print('Warning: file {} hidden by {}' 396 .format(os.path.abspath(filename),import_files[pkg])) 395 G2Print('Warning: file {} hidden by {}'.format(os.path.abspath(filename),import_files[pkg])) 397 396 else: 398 397 import_files[pkg] = filename -
trunk/GSASIIphsGUI.py
r5094 r5096 6179 6179 6180 6180 bigSizer.Add(mainSizer,1,wx.EXPAND) 6181 # add help button to bring up help web page - at right side of window6182 6181 bigSizer.Add(G2G.HelpButton(G2frame.FRMC,helpIndex=G2frame.dataWindow.helpKey)) 6183 6182 SetPhaseWindow(G2frame.FRMC,bigSizer) … … 6398 6397 6399 6398 elif G2frame.RMCchoice == 'PDFfit': 6400 PDFfit_exec = G2pwd.findPDFfit() 6399 PDFfit_exec = G2pwd.findPDFfit() #returns location of python (not pdffit!) 6401 6400 print(PDFfit_exec) 6402 6401 pName = generalData['Name'].replace(' ','_') -
trunk/GSASIIpwd.py
r5094 r5096 2965 2965 2966 2966 def findPDFfit(): 2967 '''Find where PDFfit2 is installed. Does the following: 2968 :returns: the full path to a python executable that is assumed to 2969 have PDFfit2 installed or None, if it was not found. 2967 '''Find if PDFfit2 is installed (may be local to GSAS-II). Does the following: 2968 :returns: the full path to a python executable or None, if it was not found. 2970 2969 ''' 2971 2970 try: 2972 import diffpy.pdffit22971 from diffpy.pdffit2 import PdfFit 2973 2972 return sys.executable 2974 2973 except: … … 3059 3058 General = Phase['General'] 3060 3059 Cell = General['Cell'][1:7] 3060 G2path = GSASIIpath.path2GSAS2 3061 3061 rundata = ''' 3062 3062 #!/usr/bin/env python 3063 3063 # -*- coding: utf-8 -*- 3064 import sys 3065 sys.path.append('%s') 3064 3066 from diffpy.pdffit2 import PdfFit 3065 3067 pf = PdfFit() 3066 ''' 3068 '''%G2path 3067 3069 Nd = 0 3068 3070 Np = 0
Note: See TracChangeset
for help on using the changeset viewer.