Changeset e5a9e32 in sasview for sansview


Ignore:
Timestamp:
Dec 12, 2008 7:44:55 PM (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:
d250f7d
Parents:
b98db8c
Message:

try to model2d

File:
1 edited

Legend:

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

    rf39511b re5a9e32  
    590590        x = numpy.arange(-0.05, 0.05, 0.001) 
    591591        y = numpy.arange(-0.05, 0.05, 0.001) 
    592         print "went here ",enable2D 
     592         
     593        print "went here ",len(x) 
    593594        if enable2D: 
    594595            data=numpy.zeros([len(x),len(y)]) 
    595596            for i in range(len(y)): 
    596597                for j in range(len(x)): 
    597                     data[i][j]=model.runXY([j,i]) 
     598                    if i >=0 and i<=0.005 or j >=0 and j<=0.005: 
     599                        data[i][j]=0 
     600                    else: 
     601                        data[i][j]=model.runXY([j,i]) 
    598602            theory = Theory2D(data)   
    599603            theory.group_id =str(model.name)+" 2D" 
Note: See TracChangeset for help on using the changeset viewer.