Changeset b281210 in sasview for invariantview/perspectives/invariant/invariant_state.py
- Timestamp:
- Jul 26, 2010 7:27:38 PM (14 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- cb274d9e
- Parents:
- cef847c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
invariantview/perspectives/invariant/invariant_state.py
ra94c4e1 rb281210 102 102 self.template_str = html_template.read() 103 103 self.report_str = self.template_str 104 #self.report_str_save = None 104 105 html_template.close() 105 106 … … 211 212 except: 212 213 pass 213 state += "(%s %s)"%(format_number(value),' %')214 state += "(%s %s)"%(format_number(value),'o/o') 214 215 # Outputs 215 216 else: … … 464 465 bool_0 = extra[0].split("=") 465 466 bool_1 = extra[1].split("=") 466 s_7 = " "+bool_0[0]+" = "+bool_0[1]467 s_8 = " "+bool_1[0]+" = "+bool_1[1]467 s_7 = " "+bool_0[0]+"Q region = "+bool_0[1] 468 s_8 = " "+bool_1[0]+"Q region = "+bool_1[1] 468 469 elif item[0]=="npts low": 469 470 s_9 = item[1] … … 491 492 # make plot image 492 493 self.set_plot_state(extra_high=bool_0[1],extra_low=bool_1[1]) 493 494 494 # get ready for report with setting all the html strings 495 self.report_str = str(self.template_str)% (s_1,s_2,s_3,s_4,s_5,s_6,s_7,s_8,s_9,s_10,s_11,s_12,s_13,s_14,s_15,s_16,s_17,s_18,self.file,self.wximbmp)496 497 495 self.report_str = str(self.template_str)% (s_1,s_2,s_3,s_4,s_5,s_6,s_7,s_8,s_9,s_10,s_11,s_12,s_13,s_14,s_15,s_16,s_17,s_18,self.file,"%s") 496 497 498 498 def set_saved_state(self, name, value): 499 499 """ … … 577 577 578 578 self.wximbmp = 'memory:img_inv.png' 579 579 self.image = img 580 580 581 581 class Reader(CansasReader):
Note: See TracChangeset
for help on using the changeset viewer.