Changeset bee885e in sasview


Ignore:
Timestamp:
Sep 8, 2008 10:36:52 AM (16 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:
1c66bc5
Parents:
060b857
Message:

Added HFIR 1D 4-col data reader

Location:
DataLoader
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • DataLoader/notes.txt

    rdaa56d0 rbee885e  
    11- Need support for images. tiff_reader.py needs to be tested. 
    2 - Need support for zip file plugins for when we use py2exe. 
  • DataLoader/release_notes.txt

    r579ba85 rbee885e  
    77        - Release date: ? 
    88        - First version of CanSAS reader/writer 
    9         - 1D data manipulations available 
     9        - 1D and 2D data manipulations available 
     10        - 1D CanSAS writer available 
     11        - HFIR 1D 4-col reader available (*.d1d) 
     12        - Allows plugins through python source or zip files 
    1013         
    1114        Version 0.1 
  • DataLoader/test/utest_abs_reader.py

    re390933 rbee885e  
    5757    def test_checkdata2(self): 
    5858        self.assertEqual(self.data.dy[126], 1) 
     59         
     60class hfir_reader(unittest.TestCase): 
     61     
     62    def setUp(self): 
     63        self.data = Loader().load("S2-30dq.d1d") 
     64         
     65    def test_checkdata(self): 
     66        """ 
     67            Check the data content to see whether  
     68            it matches the specific file we loaded. 
     69        """ 
     70        self.assertEqual(self.data.filename, "S2-30dq.d1d") 
     71        #          Q           I               dI          dQ   
     72        # Point 1: 0.003014    0.003010        0.000315    0.008249 
     73        self.assertEqual(self.data.x[1], 0.003014) 
     74        self.assertEqual(self.data.y[1], 0.003010) 
     75        self.assertEqual(self.data.dy[1], 0.000315) 
     76        self.assertEqual(self.data.dx[1], 0.008249) 
     77         
    5978 
    6079class igor_reader(unittest.TestCase): 
Note: See TracChangeset for help on using the changeset viewer.