- Timestamp:
- Nov 7, 2017 1:21:18 PM (7 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:
- 7e82256
- Parents:
- 54b0650
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/sascalculator/test/utest_sas_gen.py
r1d014cb rf926abb 6 6 7 7 import unittest 8 import numpy as np 9 8 10 from sas.sascalc.calculator import sas_gen 9 11 … … 48 50 self.assertEqual(output.pos_z[0], 0.0) 49 51 52 def test_calculator(self): 53 """ 54 Test that the calculator calculates. 55 """ 56 f = self.omfloader.read("A_Raw_Example-1.omf") 57 omf2sld = sas_gen.OMF2SLD() 58 omf2sld.set_data(f) 59 model = sas_gen.GenSAS() 60 model.set_sld_data(omf2sld.output) 61 x = np.linspace(0, 0.1, 11)[1:] 62 model.runXY([x, x]) 63 50 64 51 65 if __name__ == '__main__':
Note: See TracChangeset
for help on using the changeset viewer.