Changeset d0eac66 in sasview


Ignore:
Timestamp:
Feb 9, 2009 4:35:43 PM (16 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:
fee6059
Parents:
13e120a
Message:

Fixed generating an error when calling 'select data for fitting' twice.

File:
1 edited

Legend:

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

    r13e120a rd0eac66  
    199199                #find a name for the page created for notebook 
    200200                try: 
     201                    
    201202                    page, model_name = self.fit_panel.add_fit_page(item) 
    202203                    # add data associated to the page created 
    203                      
    204                     if page !=None:     
     204                    
     205                    if page !=None:    
    205206                        #create a fitproblem storing all link to data,model,page creation 
    206207                        self.page_finder[page]= FitProblem() 
    207208                        self.page_finder[page].save_model_name(model_name)   
    208209                        self.page_finder[page].add_data(item) 
     210                        wx.PostEvent(self.parent, StatusEvent(status="Page Created")) 
     211                    else: 
     212                        wx.PostEvent(self.parent, StatusEvent(status="Page was already Created")) 
    209213                except: 
    210                     raise 
     214                    #raise 
    211215                    wx.PostEvent(self.parent, StatusEvent(status="Creating Fit page: %s"\ 
    212216                    %sys.exc_value)) 
     
    669673                theory.source= data.source 
    670674                 
     675                theory.qmin= qmin 
     676                theory.qmax= qmax 
     677                theory.ymin= ymin 
     678                theory.ymax= ymax 
    671679                theory.xmin= xmin 
    672680                theory.xmax= xmax 
    673                 theory.ymin= ymin 
    674                 theory.ymax= ymax 
    675681         
    676682                wx.PostEvent(self.parent, NewPlotEvent(plot=theory, 
Note: See TracChangeset for help on using the changeset viewer.