Ignore:
Timestamp:
Dec 6, 2017 11:04:17 AM (6 years ago)
Author:
GitHub <noreply@…>
Branches:
master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
a64f8f4, b6b81a3, 0a88623, 66285f5
Parents:
f53d684 (diff), bc4f5bb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Paul Kienzle <pkienzle@…> (12/06/17 11:04:17)
git-committer:
GitHub <noreply@…> (12/06/17 11:04:17)
Message:

Merge pull request 127 from SasView?/ticket-1032-sldi. Closes #1032.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/sascalculator/test/utest_sas_gen.py

    rf53d684 r5bb05a4  
    88 
    99import unittest 
     10import numpy as np 
     11 
    1012from sas.sascalc.calculator import sas_gen 
    1113 
     
    5456        self.assertEqual(output.pos_z[0], 0.0) 
    5557 
     58    def test_calculator(self): 
     59        """ 
     60        Test that the calculator calculates. 
     61        """ 
     62        f = self.omfloader.read("A_Raw_Example-1.omf") 
     63        omf2sld = sas_gen.OMF2SLD() 
     64        omf2sld.set_data(f) 
     65        model = sas_gen.GenSAS() 
     66        model.set_sld_data(omf2sld.output) 
     67        x = np.linspace(0, 0.1, 11)[1:] 
     68        model.runXY([x, x]) 
     69 
    5670 
    5771if __name__ == '__main__': 
Note: See TracChangeset for help on using the changeset viewer.