Changeset 78cae5a in sasview


Ignore:
Timestamp:
Mar 12, 2010 12:55:13 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:
20b6760
Parents:
08ece0b
Message:

used ring avg instead of sectorphi

Location:
guiframe/local_perspectives/plotting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • guiframe/local_perspectives/plotting/AnnulusSlicer.py

    r4ac8556 r78cae5a  
    117117            return 
    118118         
    119         from DataLoader.manipulations import SectorPhi 
     119        from DataLoader.manipulations import Ring 
    120120     
    121121        rmin= min(math.fabs(self.inner_circle.get_radius()), 
     
    130130            self.nbins = nbins 
    131131        ## create the data1D Q average of data2D     
    132         sect = SectorPhi(r_min=rmin , r_max= rmax, 
    133                           phi_min=0, phi_max=2*math.pi , nbins=self.nbins) 
     132        sect = Ring(r_min=rmin , r_max= rmax, nbins=self.nbins) 
    134133        sector = sect(self.base.data2D) 
    135134         
     
    144143            dxw= None 
    145144        
    146         new_plot = Data1D(x=sector.x,y=sector.y,dy=sector.dy) 
     145        new_plot = Data1D(x=(sector.x-math.pi)*180/math.pi,y=sector.y,dy=sector.dy) 
    147146        new_plot.dxl = dxl 
    148147        new_plot.dxw = dxw 
    149         new_plot.name = "SectorPhi" +"("+ self.base.data2D.name+")" 
     148        new_plot.name = "AnnulusPhi" +"("+ self.base.data2D.name+")" 
    150149         
    151150        new_plot.source=self.base.data2D.source 
     
    157156        new_plot.xaxis("\\rm{\phi}", 'degrees') 
    158157        new_plot.yaxis("\\rm{Intensity} ","cm^{-1}") 
    159         new_plot.group_id = "SectorPhi"+self.base.data2D.name 
    160         new_plot.id= "SectorPhi"+self.base.data2D.name 
     158        new_plot.group_id = "AnnulusPhi"+self.base.data2D.name 
     159        new_plot.id= "AnnulusPhi"+self.base.data2D.name 
    161160        #new_plot.is_data= True 
    162161         
     
    164163        new_plot.ytransform="y" 
    165164        wx.PostEvent(self.base.parent, NewPlotEvent(plot=new_plot, 
    166                                                  title="SectorPhi" )) 
     165                                                 title="AnnulusPhi" )) 
    167166         
    168167          
     
    181180        wx.PostEvent(self.base, event) 
    182181        # create a 1D data plot 
    183         self._post_data() 
     182        #self._post_data() 
    184183             
    185184    def restore(self): 
  • guiframe/local_perspectives/plotting/AzimutSlicer.py

    r4937983 r78cae5a  
    201201        #print "main moveend ", event.params 
    202202        #wx.PostEvent(self.base.parent, event) 
    203         self._post_data() 
     203        #self._post_data() 
     204        pass 
    204205             
    205206    def restore(self): 
Note: See TracChangeset for help on using the changeset viewer.