Changeset 7a07864 in sasview for sansview


Ignore:
Timestamp:
Aug 16, 2010 1:35:12 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:
077f096
Parents:
b63dc6e
Message:

a bit generalized the plotdata

File:
1 edited

Legend:

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

    rb63dc6e r7a07864  
    3535from sans.guicomm.events import EVT_SLICER_PANEL,ERR_DATA,EVT_REMOVE_DATA 
    3636from sans.guicomm.events import EVT_SLICER_PARS_UPDATE 
     37from sans.guicomm.events import EVT_FITSTATE_UPDATE 
    3738 
    3839from sans.fit.AbstractFitEngine import Model 
     
    5152 
    5253(PageInfoEvent, EVT_PAGE_INFO)   = wx.lib.newevent.NewEvent() 
    53 (FitStateUpdateEvent, EVT_STATE_UPDATE)   = wx.lib.newevent.NewEvent() 
     54#(FitStateUpdateEvent, EVT_STATE_UPDATE)   = wx.lib.newevent.NewEvent() 
    5455from fitpage import Chi2UpdateEvent 
    5556 
     
    238239        """ 
    239240        self.parent = parent 
    240         self.parent.Bind(EVT_STATE_UPDATE, self.on_set_state_helper) 
     241        self.parent.Bind(EVT_FITSTATE_UPDATE, self.on_set_state_helper) 
    241242        # Creation of the fit panel 
    242243        self.fit_panel = FitPanel(self.parent, -1) 
     
    320321        : event: FitStateUpdateEvent called by dataloader.plot_data from guiframe 
    321322        """ 
    322         if len(self.temp_state) == 0 and self.sfile_ext =='.svs': 
    323             if self.state_index==0 and len(self.mypanels) <= 0: 
     323        if len(self.temp_state) == 0: 
     324            if self.state_index==0 and len(self.mypanels) <= 0 and self.sfile_ext =='.svs': 
    324325                self.fit_panel.add_default_pages() 
    325326                self.temp_state = [] 
Note: See TracChangeset for help on using the changeset viewer.