Changeset bd32230 in sasview for src/sas/sasgui/guiframe
- Timestamp:
- Feb 26, 2018 4:15:31 PM (7 years ago)
- Children:
- 8b79cc0
- Parents:
- 2120a43
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/report_dialog.py
r2120a43 rbd32230 130 130 resultFile = open(filename, "w+b") 131 131 # convert HTML to PDF 132 data = '<html><head><meta http-equiv=Content-Type content=\'text/html; charset=windows-1252\'><meta name=Generator ></head><body lang=EN-US>' \ 133 '<div class=WordSection1><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> </p>' \ 134 '<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</font></center></p>' \ 135 '<p class=MsoNormal><center><font size=4 > Model name:cylinder </font></center></p>' \ 136 '<p class=MsoNormal><center><font size=4 > Q Range: min = 0.00925926, max = 0.5 </font></center></p>' \ 137 '<p class=MsoNormal><center><font size=4 > Chi2/Npts = 21178 </font></center></p><p class=MsoNormal> </p>' \ 138 '<p class=MsoNormal><center><font size=4 > scale = 1 +- (fixed)</font></center></p><p class=MsoNormal><center><font size=4 > background = 0.001 +- (fixed) 1/cm </font>' \ 139 '</center></p><p class=MsoNormal><center><font size=4 > sld = 4 +- (fixed) 1e-6/Ang^2</font></center></p><p class=MsoNormal><center><font size=4 > sld_solvent = 1 +- (fixed) 1e-6/Ang^2' \ 140 '</font></center></p><p class=MsoNormal><center><font size=4 > radius = 20 +- (fixed) Ang </font></center></p><p class=MsoNormal><center><font size=4 > length = 400 +- (fixed) Ang</font></center></p>' \ 141 '<p class=MsoNormal> </p><p class=MsoNormal> </p><br><p class=MsoNormal><b><span ><center> <font size=4> Graph</font></span></center></b></p>' \ 142 '<p class=MsoNormal> </p><center><br><font size=4 >Model Computation</font><br><font size=4 >Data: "cyl_400_40.txt [Feb 26 2018 12:04:42]"</font><br>' \ 143 '<img src="/Users/wojciechpotrzebowski/Desktop/sasview_reporting2_img0.png" ></img><p class=MsoNormal> </p><img src="/Users/wojciechpotrzebowski/Desktop/sasview_reporting2_img1.png" ></img>' 132 data = '<html><head><meta http-equiv=Content-Type content=text/html; charset=windows-1252><meta name=Generator ></head><body lang=EN-US>Just a test text</body></html>' 144 133 pisaStatus = pisa.CreatePDF(data, dest=resultFile) 145 134 # close output file
Note: See TracChangeset
for help on using the changeset viewer.