Ignore:
Timestamp:
Mar 8, 2012 4:12:56 PM (13 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:
23a1747
Parents:
d71a9fe
Message:

changed slicer dialog angle units for rad to deg

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/local_perspectives/plotting/SectorSlicer.py

    r13382fc7 r789ffc6  
    236236            msg += " %f, %f" % (self.left_line.phi, self.right_line.phi) 
    237237            raise ValueError, msg 
    238         params["Phi"] = self.main_line.theta 
    239         params["Delta_Phi"] = math.fabs(self.left_line.phi) 
     238        params["Phi [deg]"] = self.main_line.theta * 180/math.pi 
     239        params["Delta_Phi [deg]"] = math.fabs(self.left_line.phi * 180/math.pi) 
    240240        params["nbins"] = self.nbins 
    241241        return params 
     
    249249            values the user assigned to the slicer. 
    250250        """ 
    251         main = params["Phi"]  
    252         phi = math.fabs(params["Delta_Phi"]) 
     251        main = params["Phi [deg]"]  * math.pi/180 
     252        phi = math.fabs(params["Delta_Phi [deg]"] * math.pi/180) 
    253253        self.nbins = int(params["nbins"]) 
    254254        self.main_line.theta = main 
Note: See TracChangeset for help on using the changeset viewer.