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


Ignore:
Timestamp:
Feb 26, 2018 10:12:24 AM (7 years ago)
Author:
wojciech
Children:
2120a43
Parents:
a7db85f
Message:

Hard formatted string

File:
1 edited

Legend:

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

    ra7db85f ra16cbb0  
    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' 
     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>&nbsp;</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>&nbsp;</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>&nbsp;</p><p class=MsoNormal>&nbsp;</p><br><p class=MsoNormal><b><span ><center> <font size=\'4\' > Graph</font></span></center></b></p>' \ 
     142               '<p class=MsoNormal>&nbsp;</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>&nbsp;</p><img src="/Users/wojciechpotrzebowski/Desktop/sasview_reporting2_img1.png" ></img>' 
    133144        pisaStatus = pisa.CreatePDF(data, dest=resultFile) 
    134145        # close output file 
Note: See TracChangeset for help on using the changeset viewer.