Changeset 32cd80c in sasview


Ignore:
Timestamp:
Aug 26, 2011 12:59:30 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:
5d2e4c1
Parents:
ad3fa1e
Message:

small change in create_2d data

File:
1 edited

Legend:

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

    recf26e1 r32cd80c  
    249249        # theory default: assume the beam  
    250250        #center is located at the center of sqr detector 
    251         xmax = self.qmax_x 
    252         xmin = -self.qmin_x 
    253         ymax = self.qmax_x 
    254         ymin = -self.qmin_x 
     251        xmax = qmax 
     252        xmin = -qmax 
     253        ymax = qmax 
     254        ymin = -qmax 
    255255        qstep = self.npts_x 
    256256        x = numpy.linspace(start=xmin, stop=xmax, num=qstep, endpoint=True)   
     
    276276        xstep = x_size/len(x_bins-1) 
    277277        ystep = y_size/len(y_bins-1) 
    278         self.data.detector.append(Detector())          
     278   
    279279        self.data.source = Source() 
    280         self.data.data = numpy.ones(len(qx_data)) 
     280        self.data.data = numpy.ones(len(mask)) 
    281281        self.data.err_data = numpy.ones(len(mask)) 
    282282        self.data.qx_data = qx_data  
Note: See TracChangeset for help on using the changeset viewer.