Changeset 4bee68d in sasview for sansview/perspectives/fitting


Ignore:
Timestamp:
Apr 26, 2011 11:46:00 AM (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:
34b9813
Parents:
5901bb9
Message:

partly fixed saving opening project/analysis file

Location:
sansview/perspectives/fitting
Files:
3 edited

Legend:

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

    r4e78f56 r4bee68d  
    198198            for uid, panel in self.opened_pages.iteritems(): 
    199199                #Don't return any panel is the exact same page is created 
    200                 if uid == panel.uid: 
     200                if uid == panel.uid and panel.data == state.data: 
    201201                    # the page is still opened 
    202202                    panel.reset_page(state=state) 
     
    207207                # add data associated to the page created 
    208208                if panel is not None:   
    209                     self._manager.store_page(page=panel.uid, data=state.data) 
     209                    self._manager.store_data(uid=panel.uid,  
     210                                             data=state.data, 
     211                                             caption=panel.window_caption) 
    210212                    panel.reset_page(state=state) 
    211213                    panel.save_current_state() 
  • sansview/perspectives/fitting/fitting.py

    r29d6fa5 r4bee68d  
    316316        #state = self.state_reader.get_state() 
    317317        if state != None: 
     318            state = state.clone() 
    318319            # store fitting state in temp_state 
    319320            self.temp_state.append(state)  
     
    347348                #set state 
    348349                data = self.parent.create_gui_data(state.data) 
    349                  
    350350                data.group_id = state.data.group_id 
    351351                self.parent.add_data(data_list={data.id:data}) 
  • sansview/perspectives/fitting/pagestate.py

    rc0ff8cc r4bee68d  
    14541454               
    14551455        except: 
    1456             #self.call_back(format=ext) 
    1457             self.state= state 
     1456            self.call_back(format=ext) 
     1457            #self.state= state 
    14581458            raise 
    14591459            
Note: See TracChangeset for help on using the changeset viewer.