Changeset 74dc0a4 in sasview for fittingview/src/sans/perspectives


Ignore:
Timestamp:
Oct 18, 2011 11:19:14 AM (13 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:
5d344c6
Parents:
15f68ce
Message:

added model name in report

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/pagestate.py

    rb7c6a4a r74dc0a4  
    369369        rep += "data's name : %s\n"%self.data_name 
    370370        rep += "data's id : %s\n"%self.data_id 
     371        if self.model != None: 
     372            rep += "model name : %s\n"% self.model.__class__.__name__ 
     373        else: 
     374            rep += "model name : None\n" 
    371375        rep += "model type (form factor) selected: %s\n"%self.shape_rbutton  
    372376        rep += "multi_factor : %s\n"% str(self.multi_factor) 
     
    500504                except: 
    501505                    pass 
     506            if name == "model name ": 
     507                try: 
     508                    modelname = "Model name:" + content[1] 
     509                except: 
     510                    modelname = "Model name:" + " NAN" 
     511                model_name = CENTRE %  modelname 
     512                  
    502513            if name == "Plotting Range": 
    503514                try: 
     
    534545                                   
    535546        html_string = title_name + "\n" + file_name + \ 
     547                                   "\n" + model_name +\ 
    536548                                   "\n" + q_range + \ 
    537549                                   "\n" + chi2_string + \ 
Note: See TracChangeset for help on using the changeset viewer.