Changeset 1a6ec25 in sasview


Ignore:
Timestamp:
Feb 25, 2009 10:29:45 AM (16 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
997b620
Parents:
6e659ae8
Message:

renaming variables

File:
1 edited

Legend:

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

    r18eba35 r1a6ec25  
    231231    def get_params(self): 
    232232        params = {} 
    233         params["main_phi"] = self.main_line.theta 
     233        params["Phi"] = self.main_line.theta 
    234234        if math.fabs(self.left_line.phi) != math.fabs(self.right_line.phi): 
    235235            raise ValueError,"Phi left and phi right are different %f, %f"%(self.left_line.phi, self.right_line.phi) 
    236         params["left_phi"] = math.fabs(self.left_line.phi) 
    237         params["right_phi"] = math.fabs(self.right_line.phi) 
     236        params["Delta_Phi"] = math.fabs(self.left_line.phi) 
    238237        params["nbins"] = self.nbins 
    239238        return params 
     
    241240    def set_params(self, params): 
    242241         
    243         main = params["main_phi"]  
    244         phi = math.fabs(params["left_phi"] ) 
     242        main = params["Phi"]  
     243        phi = math.fabs(params["Delta_Phi"] ) 
    245244        self.nbins = int(params["nbins"]) 
    246245        self.main_line.theta= main 
Note: See TracChangeset for help on using the changeset viewer.