Changeset 05319e2 in sasview


Ignore:
Timestamp:
Mar 22, 2011 11:19:27 PM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
71bd773
Parents:
8956bdb
Message:

working on display theory on data panel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/fitting.py

    r66ff250 r05319e2  
    11931193            
    11941194            self.page_finder[page_id].set_theory_data(new_plot) 
    1195             theory_data = self.page_finder[page_id].get_theory_data() 
    11961195            if data is None: 
    1197                 name = "Data generates by Fitting " 
    1198                 theory_data.name = name 
    1199                 self.parent.add_data_helper({theory_data.id:theory_data}) 
    1200                 data_id = theory_data.id 
     1196                data_id = new_plot.id 
    12011197            else: 
    12021198                data_id = data.id 
    12031199            
    12041200            self.parent.update_theory(data_id=data_id,  
    1205                                        theory=theory_data, 
     1201                                       theory=new_plot, 
    12061202                                       state=state)      
    12071203            current_pg = self.fit_panel.get_page_by_id(page_id) 
     
    12801276         
    12811277        self.page_finder[page_id].set_theory_data(new_plot) 
    1282         theory_data = self.page_finder[page_id].get_theory_data() 
    12831278        if data is None: 
    1284             name = "Data generates by Fitting " 
    1285             theory_data.name = name 
    1286             self.parent.add_data_helper({theory_data.id:theory_data}) 
    1287             data_id = theory_data.id 
     1279            data_id = new_plot.id 
    12881280        else: 
    12891281            data_id = data.id 
    12901282        self.parent.update_theory(data_id=data_id,  
    1291                                        theory=theory_data, 
     1283                                       theory=new_plot, 
    12921284                                       state=state)   
    12931285        current_pg = self.fit_panel.get_page_by_id(page_id) 
Note: See TracChangeset for help on using the changeset viewer.