Changeset 3eb2811 in sasview


Ignore:
Timestamp:
Aug 10, 2010 4:29:45 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:
9b18735
Parents:
8897d66
Message:

fixed minor bug when a file is saved without model selection: fit_panel

File:
1 edited

Legend:

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

    r8897d66 r3eb2811  
    319319        if self.temp_state == None or len(self.temp_state) == 0: 
    320320            return 
     321         
    321322        try: 
    322323            #close all panels only when svs file opened 
     
    325326            # Load fitting state 
    326327            state = self.temp_state[self.state_index] 
    327             #set state 
    328             page = self.fit_panel.set_state(state)  
     328            #panel state should have model selection to set_state 
     329            if state.formfactorcombobox != None: 
     330                #set state 
     331                page = self.fit_panel.set_state(state)    
     332            else: 
     333                #just set data because set_state won't work 
     334                page_info = self.fit_panel.get_page_info(data=state.data) 
     335                self.fit_panel.add_page(page_info) 
     336                 
    329337            # get ready for the next set state 
    330338            self.state_index += 1 
Note: See TracChangeset for help on using the changeset viewer.