Changeset 818589a in sasview for sansview/perspectives


Ignore:
Timestamp:
Apr 18, 2011 4:42:55 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:
e58c280
Parents:
0c68c27
Message:

fixed a problem on report not including all plotpanels

Location:
sansview/perspectives/fitting
Files:
2 edited

Legend:

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

    r1a74523 r818589a  
    24792479            # try to get all plots belonging to this control panel 
    24802480             try: 
     2481                 title = '' 
    24812482                 # check titles (main plot)  
     2483                 if hasattr(item2,"data2D"): 
     2484                     title = item2.data2D.title 
    24822485                 # and data_names (model plot[2D], and residuals) 
    24832486                 if item2.group_id == data_title or \ 
    2484                                 item2.window_name.count(data_name) or\ 
     2487                                title.count(data_name) or \ 
     2488                                item2.window_name.count(data_name) or \ 
    24852489                                item2.window_caption.count(data_name): 
    24862490                     #panel = gui_manager._mgr.GetPane(item2.window_name) 
  • sansview/perspectives/fitting/fitting.py

    rba1f0b2 r818589a  
    12971297        new_plot= Data2D(image=image, err_image=err_image) 
    12981298        new_plot.name = model.name 
    1299          
     1299        new_plot.title = "Analytical model 2D " 
    13001300        if data is None: 
    13011301            self._fill_default_model2D(theory=new_plot,  
     
    13241324            new_plot.xmin = data.xmin 
    13251325            new_plot.xmax = data.xmax 
     1326            title = data.title 
     1327            if len(title) > 1: 
     1328                new_plot.title = "Model2D for " + data.name 
    13261329        new_plot.is_data = False 
    13271330        new_plot.name = model.name + " ["+ str(model.__class__.__name__)+ "]" 
    1328         new_plot.title = "Analytical model 2D " 
     1331 
    13291332        theory_data = deepcopy(new_plot) 
    13301333        theory_data.name = "Unknown" 
     
    13451348        current_pg = self.fit_panel.get_page_by_id(page_id) 
    13461349        title = new_plot.title 
     1350 
    13471351        wx.PostEvent(self.parent, NewPlotEvent(plot=new_plot, 
    13481352                                               title=title)) 
Note: See TracChangeset for help on using the changeset viewer.