Changeset a3f8d58 in sasview for DataLoader/test


Ignore:
Timestamp:
Jul 18, 2009 4:40:57 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:
72c7d31
Parents:
ba95543
Message:

dataloader: converted smearing to C and allowed for partial Q range

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DataLoader/test/utest_smearing.py

    r4fe4394 ra3f8d58  
    5656        answer = [ 9.666,  9.056,  8.329,  7.494,  6.642,  5.721,  4.774,  3.824,  2.871, 2.   ] 
    5757        for i in range(len(input)): 
    58             self.assertAlmostEqual(answer[i], output[i], 5) 
     58            self.assertAlmostEqual(answer[i], output[i], 2) 
    5959         
    6060    def test_q(self): 
     
    6868        output = s(input) 
    6969        for i in range(len(input)): 
    70             self.assertEquals(input[i], output[i]) 
     70            self.assertAlmostEquals(input[i], output[i], 5) 
    7171 
    7272    def test_q2(self): 
Note: See TracChangeset for help on using the changeset viewer.