Changeset 923d926 in sasview for DataLoader


Ignore:
Timestamp:
Jan 23, 2009 11:19:29 AM (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:
7608cb5
Parents:
98bfd10
Message:

changed the unit of 2D annulus averaging into degrees and the origin to the right hand side.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DataLoader/manipulations.py

    rd9629c53 r923d926  
    979979            # Check which type of averaging we need 
    980980            if run.lower()=='phi': 
    981                 x[i] = (self.phi_max-self.phi_min)/self.nbins*(1.0*i + 0.5)+self.phi_min 
     981                #Calculate x[i] and put back the origin of angle back to the right hand side (from the left). 
     982                x[i] = ((self.phi_max-self.phi_min)/self.nbins*(1.0*i + 0.5)+self.phi_min-math.pi)*180/math.pi 
     983                if x[i]<0: 
     984                    x[i]=360+x[i] 
    982985            else: 
    983986                x[i] = (qmax-qmin)/self.nbins*(1.0*i + 0.5)+qmin 
Note: See TracChangeset for help on using the changeset viewer.