Ignore:
Timestamp:
Jul 26, 2010 7:27:38 PM (14 years ago)
Author:
Jae Cho <jhjcho@…>
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
Message:

added save as text and added png saves, improved the behavior

File:
1 edited

Legend:

Unmodified
Added
Removed
  • invariantview/perspectives/invariant/invariant_state.py

    ra94c4e1 rb281210  
    102102        self.template_str = html_template.read() 
    103103        self.report_str = self.template_str 
     104        #self.report_str_save = None 
    104105        html_template.close() 
    105106         
     
    211212                except: 
    212213                    pass 
    213                 state += "(%s %s)"%(format_number(value),'%') 
     214                state += "(%s %s)"%(format_number(value),'o/o') 
    214215            # Outputs 
    215216            else: 
     
    464465                    bool_0 = extra[0].split("=") 
    465466                    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] 
    468469                elif item[0]=="npts low": 
    469470                    s_9 = item[1] 
     
    491492        # make plot image 
    492493        self.set_plot_state(extra_high=bool_0[1],extra_low=bool_1[1]) 
    493          
    494494        # 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 
    498498    def set_saved_state(self, name, value): 
    499499        """ 
     
    577577         
    578578        self.wximbmp = 'memory:img_inv.png' 
    579              
     579        self.image = img 
    580580 
    581581class Reader(CansasReader): 
Note: See TracChangeset for help on using the changeset viewer.