Changeset a7db85f in sasview for src/sas/sasgui/guiframe


Ignore:
Timestamp:
Feb 26, 2018 8:05:55 AM (7 years ago)
Author:
wojciech
Children:
a16cbb0
Parents:
ee4a2bb
Message:

Hardcoding exact script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/guiframe/report_dialog.py

    ree4a2bb ra7db85f  
    130130        resultFile = open(filename, "w+b") 
    131131        # convert HTML to PDF 
     132        data = '<html>\n<head>\n<meta http-equiv=Content-Type content=\'text/html; charset=windows-1252\'> \n<meta name=Generator >\n</head>\n<body lang=EN-US>\n<div class=WordSection1>\n<p class=MsoNormal><b><span ><center><font size=\'4\' >cyl_400_40.txt [Feb 26 2018 12:04:42]</font></center></span></center></b></p><p class=MsoNormal>&nbsp;</p>\n<p class=MsoNormal><center><font size=\'4\' > File name:/Volumes/SasView-4.2.0-MacOSX/SasView 4.2.0.app/Contents/Resources/test/1d_data/cyl_400_40.txt \n</font></center></p>\n<p class=MsoNormal><center><font size=\'4\' > Model name:cylinder \n</font></center></p>\n<p class=MsoNormal><center><font size=\'4\' > Q Range:    min =  0.00925926, max =  0.5 \n</font></center></p>\n<p class=MsoNormal><center><font size=\'4\' > Chi2/Npts = 21178 \n</font></center></p>\n<p class=MsoNormal>&nbsp;</p>\n\n<p class=MsoNormal><center><font size=\'4\' > scale = 1 +- (fixed) \n</font></center></p>\n<p class=MsoNormal><center><font size=\'4\' > background = 0.001 +- (fixed) 1/cm \n</font></center></p>\n<p class=MsoNormal><center><font size=\'4\' > sld = 4 +- (fixed) 1e-6/Ang^2 \n</font></center></p>\n<p class=MsoNormal><center><font size=\'4\' > sld_solvent = 1 +- (fixed) 1e-6/Ang^2 \n</font></center></p>\n<p class=MsoNormal><center><font size=\'4\' > radius = 20 +- (fixed) Ang \n</font></center></p>\n<p class=MsoNormal><center><font size=\'4\' > length = 400 +- (fixed) Ang \n</font></center></p>\n\n<p class=MsoNormal>&nbsp;</p>\n\n\n<p class=MsoNormal>&nbsp;</p>\n<br>\n<p class=MsoNormal><b><span ><center> <font size=\'4\' > Graph\n</font></span></center></b></p>\n<p class=MsoNormal>&nbsp;</p>\n<center>\n<br><font size=\'4\' >Model Computation</font>\n<br><font size=\'4\' >Data: "cyl_400_40.txt [Feb 26 2018 12:04:42]"</font><br>\n<img src="/Users/wojciechpotrzebowski/Desktop/sasview_reporting2_img0.png" ></img>\n<p class=MsoNormal>&nbsp;</p>\n<img src="/Users/wojciechpotrzebowski/Desktop/sasview_reporting2_img1.png" ></img>\n' 
    132133        pisaStatus = pisa.CreatePDF(data, dest=resultFile) 
    133134        # close output file 
Note: See TracChangeset for help on using the changeset viewer.