Changeset 2e95da4 in sasview for fittingview/src/sans/perspectives


Ignore:
Timestamp:
Aug 26, 2011 3:54:03 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:
dcbd4e2c
Parents:
d1c8036
Message:

fixed 2d model default deta: redefine qmax based on real data setting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/basepage.py

    r6e4c9fe r2e95da4  
    225225        """ 
    226226        self.data = Data2D() 
    227         qmax = self.qmax_x 
     227        qmax = self.qmax_x / math.sqrt(2) 
    228228        self.data.xaxis('\\rm{Q_{x}}', 'A^{-1}') 
    229229        self.data.yaxis('\\rm{Q_{y}}', 'A^{-1}') 
     
    247247        # theory default: assume the beam  
    248248        #center is located at the center of sqr detector 
    249         xmax = qmax 
     249        xmax = qmax  
    250250        xmin = -qmax 
    251251        ymax = qmax 
    252252        ymin = -qmax 
    253253        qstep = self.npts_x 
     254 
    254255        x = numpy.linspace(start=xmin, stop=xmax, num=qstep, endpoint=True)   
    255256        y = numpy.linspace(start=ymin, stop=ymax, num=qstep, endpoint=True) 
     
    289290        self.data.ymin = ymin  
    290291        self.data.ymax = ymax  
    291          
     292 
    292293    def on_set_focus(self, event): 
    293294        """ 
Note: See TracChangeset for help on using the changeset viewer.