Changeset 5281


Ignore:
Timestamp:
May 18, 2022 2:16:10 PM (4 months ago)
Author:
toby
Message:

start putting paths into PDFfit script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwd.py

    r5278 r5281  
    33313331        return None
    33323332    for p in PDFfit_path:
    3333         rundata += "sys.path.append('{:}')\n".format(p)
     3333        rundata += "sys.path.append(r'{:}')\n".format(p)
    33343334    rundata += 'from diffpy.pdffit2 import PdfFit\n'
    33353335    rundata += 'pf = PdfFit()\n'
     
    33533353                dType = 'Xdata'
    33543354            filNam = os.path.abspath(filNam)
    3355             rundata += "pf.read_data('%s', '%s', 30.0, %.4f)\n"%(filNam,dType[0],RMCPdict[dType]['qdamp'][0])
     3355            rundata += "pf.read_data(r'%s', '%s', 30.0, %.4f)\n"%(filNam,dType[0],RMCPdict[dType]['qdamp'][0])
    33563356            rundata += 'pf.setdata(%d)\n'%Nd
    33573357            rundata += 'pf.pdfrange(%d, %6.2f, %6.2f)\n'%(Nd,RMCPdict[dType]['Fitrange'][0],RMCPdict[dType]['Fitrange'][1])
     
    33673367        fName = 'Sequential_PDFfit.stru'
    33683368    Np = 9
    3369     rundata += "pf.read_struct('{:}')\n".format(os.path.abspath(fName))
     3369    rundata += "pf.read_struct(r'{:}')\n".format(os.path.abspath(fName))
    33703370    for item in ['delta1','delta2','sratio']:
    33713371        if RMCPdict[item][1]:
Note: See TracChangeset for help on using the changeset viewer.