Changeset 5bb05a4 in sasview for test/sascalculator/test/utest_sas_gen.py
- Timestamp:
- Dec 6, 2017 11:04:17 AM (6 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/sascalculator/test/utest_sas_gen.py
rf53d684 r5bb05a4 8 8 9 9 import unittest 10 import numpy as np 11 10 12 from sas.sascalc.calculator import sas_gen 11 13 … … 54 56 self.assertEqual(output.pos_z[0], 0.0) 55 57 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 56 70 57 71 if __name__ == '__main__':
Note: See TracChangeset
for help on using the changeset viewer.