Changeset 4d5fa8c in sasview for sansview/perspectives


Ignore:
Timestamp:
May 24, 2010 11:14:52 AM (14 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:
11a7e11
Parents:
75a8723
Message:

display theory error

File:
1 edited

Legend:

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

    r75a8723 r4d5fa8c  
    13321332            if index == None: index = numpy.ones(len(data.y),ntype=bool) 
    13331333            if data.dy== None or data.dy ==[]: 
    1334                 data.dy= numpy.ones(len(data.y)) 
     1334                dy = numpy.ones(len(data.y)) 
    13351335            else: 
    1336                 data.dy[data.dy==0]=1  ## Set consitently w/AbstractFitengine: But this should be corrected later. 
     1336                ## Set consitently w/AbstractFitengine: But this should be corrected later. 
     1337                dy = data.dy 
     1338                dy[dy==0] = 1   
    13371339            fn = data.y[index]  
    13381340            gn = self.theory_data.y 
    1339             en = data.dy[index] 
     1341            en = dy[index] 
    13401342 
    13411343        # residual 
Note: See TracChangeset for help on using the changeset viewer.