Changeset 229da98 in sasview


Ignore:
Timestamp:
Feb 11, 2011 8:53:25 PM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
03314e7
Parents:
90a7bbd
Message:

working prview inversion state

Location:
prview/perspectives/pr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • prview/perspectives/pr/inversion_state.py

    r75fbd17 r229da98  
    486486        elif len(output) == 1: 
    487487            # Call back to post the new state 
    488             #self.call_back(output[0].meta_data['prstate'], datainfo = output[0]) 
    489             self.state = output[0].meta_data['prstate'] 
     488            self.call_back(output[0].meta_data['prstate'], datainfo = output[0]) 
     489            #self.state = output[0].meta_data['prstate'] 
    490490            return output[0] 
    491491        else: 
  • prview/perspectives/pr/pr.py

    rc03b780 r229da98  
    140140            if data is None: 
    141141                raise RuntimeError, "Pr.set_state: datainfo parameter cannot be None in standalone mode" 
    142             """ 
     142             
    143143            # Ensuring that plots are coordinated correctly 
    144144            t = time.localtime(data.meta_data['prstate'].timestamp) 
     
    150150                max_char = len(data.meta_data['prstate'].file) 
    151151             
    152             data.meta_data['prstate'].file = data.meta_data['prstate'].file[0:max_char] +' [' + time_str + ']' 
     152            datainfo.meta_data['prstate'].file = data.meta_data['prstate'].file[0:max_char] +' [' + time_str + ']' 
    153153            data.filename = data.meta_data['prstate'].file 
    154              """    
    155             self.current_plottable = data 
    156             # self.current_plottable.group_id = data.meta_data['prstate'].file 
     154              
     155            self.current_plottable = self.parent.create_gui_data(data,None) 
     156            self.current_plottable.group_id = data.meta_data['prstate'].file 
    157157             
    158158            # Make sure the user sees the P(r) panel after loading 
     
    161161             
    162162            # Load the P(r) results 
    163             state = self.state_reader.get_state() 
     163            #state = self.state_reader.get_state() 
    164164            wx.PostEvent(self.parent, NewPlotEvent(plot=self.current_plottable, 
    165165                                        title=self.current_plottable.title)) 
Note: See TracChangeset for help on using the changeset viewer.