Changeset 5859862 in sasview for DataLoader/test


Ignore:
Timestamp:
Sep 20, 2009 5:41:40 PM (15 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
a65ffcb
Parents:
a1100c07
Message:

dataloader: fixed problem with uneven binning. Added utility method to get first and last bins in unsmeared q.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DataLoader/test/utest_smearing.py

    ra3f8d58 r5859862  
    5454        input = 12.0-numpy.arange(1,11) 
    5555        output = s(input) 
    56         answer = [ 9.666,  9.056,  8.329,  7.494,  6.642,  5.721,  4.774,  3.824,  2.871, 2.   ] 
     56        # The following commented line was the correct output for even bins [see smearer.cpp for details]  
     57        #answer = [ 9.666,  9.056,  8.329,  7.494,  6.642,  5.721,  4.774,  3.824,  2.871, 2.   ] 
     58        answer = [ 9.2302,  8.6806,  7.9533,  7.1673,  6.2889,  5.4,     4.5028,  3.5744,  2.6083, 2.    ] 
    5759        for i in range(len(input)): 
    5860            self.assertAlmostEqual(answer[i], output[i], 2) 
Note: See TracChangeset for help on using the changeset viewer.