Changeset b98db8c in sasview


Ignore:
Timestamp:
Dec 12, 2008 7:32:32 PM (15 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:
e5a9e32
Parents:
356aea78
Message:

comment added

Location:
guiframe/local_perspectives/plotting
Files:
3 edited

Legend:

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

    r356aea78 rb98db8c  
    6969        if theta2 !=None: 
    7070            self.theta2= theta2 
    71         #print "ring update theta1 theta2", self.theta1, self.theta2 
     71        print "ring update theta1 theta2", math.degrees(self.theta1), math.degrees(self.theta2) 
    7272        while self.theta2 < self.theta1: self.theta2 += 2*math.pi 
    7373        npts = int((self.theta2 - self.theta1)/(math.pi/120)) 
  • guiframe/local_perspectives/plotting/Edge.py

    r356aea78 rb98db8c  
    7171        Draw the new roughness on the graph. 
    7272        """ 
     73        if r1 !=None: 
     74            self.r1=r1 
     75        if r2!=None: 
     76            self.r2=r2 
     77        """ 
    7378        self.theta_left=theta_left 
    7479        self.theta_right=theta_right 
     
    8994        if theta_left ==None and theta_right==None: 
    9095            self.move_stop=True 
    91         print "in the edge theta_right theta_left",theta_right,theta_left,self.theta 
     96        """ 
     97        #print "in the edge theta_right theta_left",theta_right,theta_left,self.theta 
    9298        x1= self.r1*math.cos(self.theta) 
    9399        y1= self.r1*math.sin(self.theta) 
     
    122128        #print "on move theta left , theta right",self.theta_left,self.theta_right 
    123129        theta= math.atan2(y,x) 
    124         print "on move theta left , theta right",self.theta_left,self.theta_right,theta 
    125         if self.theta_left !=None: 
    126             if self.theta_left >= theta: 
    127                 print "went hier" 
    128                 self.move_stop= True 
    129         if self.theta_right !=None: 
    130             if self.theta_right <= theta: 
    131                 self.move_stop= True 
    132  
    133         if self.move_stop: 
    134             self.theta= math.atan2(y,x) 
    135             self.has_move= True 
     130        """print "on move theta left , theta right",self.theta_left,self.theta_right,theta 
     131            if self.theta_left !=None: 
     132                if self.theta_left >= theta: 
     133                    print "went hier" 
     134                        self.move_stop= True 
     135                if self.theta_right !=None: 
     136                    if self.theta_right <= theta: 
     137                        self.move_stop= True 
     138            
     139            self.move_stop= True 
     140            if self.move_stop: 
     141         """ 
     142        self.theta= math.atan2(y,x) 
     143        self.has_move= True 
    136144             
    137145        self.base.base.update() 
  • guiframe/local_perspectives/plotting/SectorSlicer.py

    r356aea78 rb98db8c  
    3333        theta1=math.pi/8 
    3434        theta2=math.pi/2 
     35        theta1=2*math.pi/3 
     36        theta2=-2*math.pi/3 
    3537        r1=self.qmax/2.0 
    3638        r2=self.qmax/1.8 
     39        
    3740        # Inner circle 
    3841        from Arc import ArcInteractor 
     
    4851                                             arc1=self.inner_circle, 
    4952                                             arc2=self.outer_circle, 
    50                                             theta=math.pi/8) 
     53                                            theta=theta1) 
    5154        self.outer_radius= RadiusInteractor(self, self.base.subplot, zorder=zorder+1, 
    5255                                             arc1=self.inner_circle, 
    5356                                             arc2=self.outer_circle, 
    54                                             theta=math.pi/2) 
     57                                            theta=theta2) 
    5558        self.update() 
    5659        self._post_data() 
Note: See TracChangeset for help on using the changeset viewer.