Changeset c4550b0 in sasview


Ignore:
Timestamp:
Feb 3, 2009 4:48:54 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:
7ce6c72
Parents:
44999f3
Message:

redefined qmin and qmax

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/fitpage1D.py

    r44999f3 rc4550b0  
    186186        else: 
    187187            # Reversed to the codes; Need to think  carefully about consistency in q between 2D plot and fitting 
    188             #radius1= math.sqrt(math.pow(self.data.xmin, 2)+ math.pow(self.data.ymin, 2)) 
    189             #radius2= math.sqrt(math.pow(self.data.xmax, 2)+ math.pow(self.data.ymin, 2)) 
    190             #radius3= math.sqrt(math.pow(self.data.xmin, 2)+ math.pow(self.data.ymax, 2)) 
    191             #radius4= math.sqrt(math.pow(self.data.xmax, 2)+ math.pow(self.data.ymax, 2)) 
    192             #self.qmin_x =numpy.min(self.data.x)#0 
    193             #self.qmax_x= numpy.max(self.data.x)#max(radius1, radius2, radius3, radius4) 
    194             self.qmin_x= self.data.xmin 
    195             self.qmax_x= self.data.xmax            
     188            radius1= math.sqrt(math.pow(self.data.xmin, 2)+ math.pow(self.data.ymin, 2)) 
     189            radius2= math.sqrt(math.pow(self.data.xmax, 2)+ math.pow(self.data.ymin, 2)) 
     190            radius3= math.sqrt(math.pow(self.data.xmin, 2)+ math.pow(self.data.ymax, 2)) 
     191            radius4= math.sqrt(math.pow(self.data.xmax, 2)+ math.pow(self.data.ymax, 2)) 
     192            self.qmin_x =0 
     193            self.qmax_x= max(radius1, radius2, radius3, radius4) 
     194            #self.qmin_x= self.data.xmin 
     195            #self.qmax_x= self.data.xmax            
    196196            print "data2D range",self.qmax_x 
    197197         
Note: See TracChangeset for help on using the changeset viewer.