Changeset 35ec279 in sasview for test/sascalculator
- Timestamp:
- Feb 13, 2015 4:08:43 AM (10 years ago)
- 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:
- b9a5f0e
- Parents:
- 8c9ffde
- Location:
- test/sascalculator/test
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
test/sascalculator/test/utest_resolution_calculator.py
r8c9ffde r35ec279 4 4 5 5 import unittest 6 from sa ns.calculator.resolution_calculator import ResolutionCalculator \6 from sas.calculator.resolution_calculator import ResolutionCalculator \ 7 7 as calculator 8 8 -
test/sascalculator/test/utest_sans_gen.py
r8c9ffde r35ec279 1 1 """ 2 Unit tests for the sa ns_gen2 Unit tests for the sas_gen 3 3 """ 4 4 import warnings … … 6 6 7 7 import unittest 8 from sa ns.calculator import sans_gen9 from sa ns.models.SphereModel import SphereModel8 from sas.calculator import sas_gen 9 from sas.models.SphereModel import SphereModel 10 10 11 11 import numpy … … 13 13 import os.path 14 14 15 class sa ns_gen_test(unittest.TestCase):15 class sas_gen_test(unittest.TestCase): 16 16 17 17 def setUp(self): 18 self.sldloader = sa ns_gen.SLDReader()19 self.pdbloader = sa ns_gen.PDBReader()20 self.omfloader = sa ns_gen.OMFReader()18 self.sldloader = sas_gen.SLDReader() 19 self.pdbloader = sas_gen.PDBReader() 20 self.omfloader = sas_gen.OMFReader() 21 21 self.comp = SphereModel() 22 22 … … 44 44 """ 45 45 f = self.omfloader.read("A_Raw_Example-1.omf") 46 output = sa ns_gen.OMF2SLD()46 output = sas_gen.OMF2SLD() 47 47 output.set_data(f) 48 48 self.assertEqual(f.mx[0], 0) … … 57 57 sld_data = self.sldloader.read("sphere697_r30.sld") 58 58 # Generic computation 59 model = sa ns_gen.GenSAS()59 model = sas_gen.GenSAS() 60 60 model.setParam('background', 0.0) 61 61 model.setParam('scale', 1.0) -
test/sascalculator/test/utest_slit_length_calculator.py
r8c9ffde r35ec279 4 4 5 5 import unittest 6 from sa ns.dataloader.readers.ascii_reader import Reader7 from sa ns.calculator.slit_length_calculator import SlitlengthCalculator as calculator6 from sas.dataloader.readers.ascii_reader import Reader 7 from sas.calculator.slit_length_calculator import SlitlengthCalculator as calculator 8 8 9 9 import os.path
Note: See TracChangeset
for help on using the changeset viewer.