Changeset 20b6760 in sasview


Ignore:
Timestamp:
Mar 12, 2010 12:55:46 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:
83195f7
Parents:
78cae5a
Message:

Added qx qy data as 2D input parameters

Location:
guiframe
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • guiframe/dataFitting.py

    r3562fbc r20b6760  
    7474                            ymin=ymin, ymax=ymax) 
    7575         
    76         LoadData2D.__init__(self,data=image, err_data=err_image) 
     76        LoadData2D.__init__(self,data=image, err_data=err_image, qx_data=None,qy_data=None,q_data=None,mask=None) 
    7777         
    7878    def copy_from_datainfo(self, data2d): 
     
    8181        """ 
    8282        self.data     =  copy.deepcopy(data2d.data) 
     83        self.qx_data     =  copy.deepcopy(data2d.qx_data) 
     84        self.qy_data     =  copy.deepcopy(data2d.qy_data) 
     85        self.q_data     =  copy.deepcopy(data2d.q_data) 
     86        self.mask     =  copy.deepcopy(data2d.mask) 
    8387        self.err_data =  copy.deepcopy(data2d.err_data) 
    8488        self.x_bins     = copy.deepcopy(data2d.x_bins) 
  • guiframe/local_perspectives/plotting/Plotter2D.py

    r3562fbc r20b6760  
    148148            self.plots[event.plot.name].ymax = event.plot.ymax 
    149149            self.plots[event.plot.name].data = event.plot.data 
     150            self.plots[event.plot.name].qx_data = event.plot.qx_data 
     151            self.plots[event.plot.name].qy_data = event.plot.qy_data 
    150152            self.plots[event.plot.name].err_data = event.plot.err_data 
    151153            # update qmax with the new xmax of data plotted 
     
    297299        ## Redraw the current image 
    298300        self.image(data= self.data2D.data, 
     301                   qx_data=self.data2D.qx_data, 
     302                   qy_data=self.data2D.qy_data, 
    299303                   xmin= self.data2D.xmin, 
    300304                   xmax= self.data2D.xmax, 
Note: See TracChangeset for help on using the changeset viewer.