Changeset 8c9ffde in sasview for test/sasrealspace
- Timestamp:
- Feb 13, 2015 2:01:33 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:
- 35ec279
- Parents:
- 3a39c2e
- Location:
- test/sasrealspace/test
- Files:
-
- 22 moved
Legend:
- Unmodified
- Added
- Removed
-
test/sasrealspace/test/early_test.py
r5777106 r8c9ffde 1 1 2 2 import VolumeCanvas 3 from sa ns.models.SphereModel import SphereModel4 from sa ns.models.CoreShellModel import CoreShellModel3 from sas.models.SphereModel import SphereModel 4 from sas.models.CoreShellModel import CoreShellModel 5 5 6 6 import math, time … … 171 171 172 172 def test_5(): 173 from sa ns.models.SphereModel import SphereModel173 from sas.models.SphereModel import SphereModel 174 174 model = VolumeCanvas.VolumeCanvas() 175 175 … … 196 196 197 197 def test_6(): 198 from sa ns.models.CylinderModel import CylinderModel198 from sas.models.CylinderModel import CylinderModel 199 199 radius = 5 200 200 length = 40 … … 243 243 244 244 def test_7(): 245 from sa ns.models.CoreShellModel import CoreShellModel245 from sas.models.CoreShellModel import CoreShellModel 246 246 print "Testing core-shell" 247 247 radius = 15 -
test/sasrealspace/test/sim_validation.py
r5777106 r8c9ffde 12 12 except: 13 13 print "Testing installed version" 14 import sa ns.realspace.VolumeCanvas as VolumeCanvas14 import sas.realspace.VolumeCanvas as VolumeCanvas 15 15 16 16 class Validator: … … 70 70 71 71 def __init__(self, radius=15, density = 0.01): 72 from sa ns.models.SphereModel import SphereModel72 from sas.models.SphereModel import SphereModel 73 73 74 74 self.name = 'sphere' … … 96 96 97 97 def __init__(self, radius=15, length=100, density = 0.01): 98 from sa ns.models.CylinderModel import CylinderModel98 from sas.models.CylinderModel import CylinderModel 99 99 100 100 self.name = 'cylinder' … … 127 127 128 128 def __init__(self, radius_a=60, radius_b=10, density = 0.01): 129 from sa ns.models.EllipsoidModel import EllipsoidModel130 #from sa ns.models.SphereModel import SphereModel129 from sas.models.EllipsoidModel import EllipsoidModel 130 #from sas.models.SphereModel import SphereModel 131 131 132 132 self.name = 'ellipsoid' … … 186 186 187 187 def __init__(self, radius=15, thickness=5, density = 0.01): 188 from sa ns.models.CoreShellModel import CoreShellModel188 from sas.models.CoreShellModel import CoreShellModel 189 189 190 190 self.name = 'coreshell' -
test/sasrealspace/test/utest_oriented.py
r5777106 r8c9ffde 21 21 #testing the version that is working on 22 22 print "Testing installed version" 23 import sa ns.realspace.VolumeCanvas as VolumeCanvas23 import sas.realspace.VolumeCanvas as VolumeCanvas 24 24 25 25 … … 31 31 Set up canvas 32 32 """ 33 from sa ns.models.SphereModel import SphereModel33 from sas.models.SphereModel import SphereModel 34 34 self.model = VolumeCanvas.VolumeCanvas() 35 35 … … 65 65 def setUp(self): 66 66 """ Set up cylinder model """ 67 from sa ns.models.CylinderModel import CylinderModel67 from sas.models.CylinderModel import CylinderModel 68 68 radius = 5 69 69 length = 40 … … 108 108 def setUp(self): 109 109 """ Set up cylinder model """ 110 from sa ns.models.CylinderModel import CylinderModel110 from sas.models.CylinderModel import CylinderModel 111 111 radius = 5 112 112 length = 40 … … 175 175 def setUp(self): 176 176 """ Set up ellipsoid """ 177 from sa ns.models.EllipsoidModel import EllipsoidModel177 from sas.models.EllipsoidModel import EllipsoidModel 178 178 179 179 radius_a = 60 … … 249 249 def setUp(self): 250 250 """ Set up zero-SLD-average core-shell model """ 251 from sa ns.models.CoreShellModel import CoreShellModel251 from sas.models.CoreShellModel import CoreShellModel 252 252 253 253 radius = 15 … … 302 302 def setUp(self): 303 303 """ Set up zero-SLD-average core-shell model """ 304 from sa ns.models.CoreShellModel import CoreShellModel304 from sas.models.CoreShellModel import CoreShellModel 305 305 306 306 radius = 15 … … 355 355 def setUp(self): 356 356 """ Set up ellipsoid """ 357 from sa ns.models.EllipsoidModel import EllipsoidModel357 from sas.models.EllipsoidModel import EllipsoidModel 358 358 359 359 radius_a = 10 … … 439 439 def setUp(self): 440 440 """ Set up cylinder model """ 441 from sa ns.models.CylinderModel import CylinderModel441 from sas.models.CylinderModel import CylinderModel 442 442 radius = 5 443 443 length = 40 -
test/sasrealspace/test/utest_realspace.py
r5777106 r8c9ffde 21 21 #testing the version that is working on 22 22 print "Testing installed version" 23 import sa ns.realspace.VolumeCanvas as VolumeCanvas23 import sas.realspace.VolumeCanvas as VolumeCanvas 24 24 25 25 class TestRealSpaceModel(unittest.TestCase): … … 131 131 the user doesnt have to do it if he doesn't need to. 132 132 """ 133 from sa ns.models.SphereModel import SphereModel133 from sas.models.SphereModel import SphereModel 134 134 sphere = SphereModel() 135 135 sphere.setParam('radius', 10.0) … … 295 295 296 296 def setUp(self): 297 from sa ns.models.CoreShellModel import CoreShellModel297 from sas.models.CoreShellModel import CoreShellModel 298 298 radius = 15 299 299 thickness = 5 … … 355 355 356 356 def testWrongOrder(self): 357 from sa ns.models.SphereModel import SphereModel357 from sas.models.SphereModel import SphereModel 358 358 self.set_coreshell_on_canvas(1, 0) 359 359
Note: See TracChangeset
for help on using the changeset viewer.