Changeset 2362
- Timestamp:
- Jul 4, 2016 8:06:22 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASII.py
r2360 r2362 1528 1528 'qPlot':False,'dPlot':False,'sqrtPlot':False 1529 1529 } 1530 # apply user-supplied corrections to powder data (remove this below, also from help)1531 # also see https://subversion.xray.aps.anl.gov/trac/pyGSAS/changeset/23441532 corrfile = os.path.join(os.path.split(rd.readfilename)[0],'G2powdercorrections.txt')1533 if os.path.exists(corrfile):1534 print('Applying corrections from file '+corrfile)1535 fp = open(corrfile,'r')1536 corr = fp.read()1537 fp.close()1538 try:1539 exec(corr)1540 print('done')1541 except Exception as err:1542 print('error: '+str(err))1543 print('with commands '+str(corr))1544 1530 # apply user-supplied corrections to powder data 1545 1531 if 'CorrectionCode' in Iparm1: … … 1554 1540 print(str(corr)) 1555 1541 print('---------------------------------') 1542 finally: 1543 del Iparm1['CorrectionCode'] 1556 1544 rd.Sample['ranId'] = valuesdict['ranId'] # this should be removed someday 1557 1545 self.PatternTree.SetItemPyData(Id,[valuesdict,rd.powderdata]) -
trunk/help/gsasII.html
r2344 r2362 2775 2775 auto;text-indent:-.0in;mso-list:l14 level2 lfo1'> 2776 2776 Note that it is possible to apply corrections to the 2-theta, 2777 intensity or weight values by creating a file with Python commands named 2778 G2powdercorrections.txt. See the G2powdercorrections.txt.sample file 2779 provided in the GSAS-II source directory. 2777 intensity or weight values by creating a adding Python command(s) to 2778 the instrument (.instprm) parameter with a variable named 2779 CorrectionCode. See the CorrectionCode.instprm.sample file 2780 provided in the GSAS-II source directory for an example of how this 2781 is done. 2780 2782 </p> 2781 2783 <p class=MsoListParagraphCxSpMiddle style='margin-left:1.5in;mso-add-space: … … 6393 6395 style='mso-bookmark:Pawley'><o:p> </o:p></span></p> 6394 6396 6395 <p class=MsoNormal><span style='mso-bookmark:Pawley'><!-- hhmts start -->Last modified: Sun Jun 26 12:58:26 CDT 2016 <!-- hhmts end -->6397 <p class=MsoNormal><span style='mso-bookmark:Pawley'><!-- hhmts start -->Last modified: Mon Jul 4 09:03:37 EDT 2016 <!-- hhmts end --> 6396 6398 </body> 6397 6399
Note: See TracChangeset
for help on using the changeset viewer.