Changeset 216efab in sasview for guiframe/local_perspectives


Ignore:
Timestamp:
Feb 6, 2009 12:25:18 PM (16 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:
7a28ba7
Parents:
10c43a5
Message:

qmax was not defined right in circular averaging. Fixed.

File:
1 edited

Legend:

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

    rd468daa r216efab  
    337337        from DataLoader.manipulations import CircularAverage 
    338338        import math 
    339         self.qmax= self.data2D.xmax 
    340         self.radius= math.sqrt( math.pow(self.qmax,2)+math.pow(self.qmax,2))  
     339        self.qmax= max(math.fabs(self.data2D.xmax),math.fabs(self.data2D.xmin)) 
     340        self.ymax=max(math.fabs(self.data2D.ymax),math.fabs(self.data2D.ymin)) 
     341        self.radius= math.sqrt( math.pow(self.qmax,2)+math.pow(self.ymax,2))  
    341342        #print "radius?",self.radius 
    342343        # bin_width = self.qmax -self.qmin/nbins  
Note: See TracChangeset for help on using the changeset viewer.