Changeset a10364b in sasview for test/sasdataloader


Ignore:
Timestamp:
Feb 18, 2015 8:52:50 AM (10 years ago)
Author:
krzywon
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:
5160609
Parents:
53df2ea
Message:

Found the issue with the failing tests in ScipyFitting? and fixed the
issue. The fitter was trying to check the value of a list item but the
check should have been against another list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/sasdataloader/test/utest_averaging.py

    ref3445e2 ra10364b  
    196196        import math 
    197197         
     198        nbins = 19 
     199        phi_min = math.pi / (nbins + 1) 
     200        phi_max = math.pi * 2 - phi_min 
     201         
    198202        r = SectorPhi(r_min=.005, 
    199203                      r_max=.01, 
    200                       phi_min=0.15707963, 
    201                       phi_max=math.pi*2.-0.15707963, 
    202                       nbins=19) 
     204                      phi_min=phi_min, 
     205                      phi_max=phi_max, 
     206                      nbins=nbins) 
    203207        o = r(self.data) 
    204208 
Note: See TracChangeset for help on using the changeset viewer.