Changeset 8c9ffde in sasview for test/sasrealspace


Ignore:
Timestamp:
Feb 13, 2015 2:01:33 AM (10 years ago)
Author:
krzywon
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
Message:

Found more folders with the name sans and about 50% done converting
all test files.

Location:
test/sasrealspace/test
Files:
22 moved

Legend:

Unmodified
Added
Removed
  • test/sasrealspace/test/early_test.py

    r5777106 r8c9ffde  
    11 
    22import VolumeCanvas 
    3 from sans.models.SphereModel import SphereModel 
    4 from sans.models.CoreShellModel import CoreShellModel 
     3from sas.models.SphereModel import SphereModel 
     4from sas.models.CoreShellModel import CoreShellModel 
    55 
    66import math, time 
     
    171171 
    172172def test_5(): 
    173     from sans.models.SphereModel import SphereModel 
     173    from sas.models.SphereModel import SphereModel 
    174174    model = VolumeCanvas.VolumeCanvas() 
    175175     
     
    196196 
    197197def test_6(): 
    198     from sans.models.CylinderModel import CylinderModel 
     198    from sas.models.CylinderModel import CylinderModel 
    199199    radius = 5 
    200200    length = 40 
     
    243243     
    244244def test_7(): 
    245     from sans.models.CoreShellModel import CoreShellModel 
     245    from sas.models.CoreShellModel import CoreShellModel 
    246246    print "Testing core-shell" 
    247247    radius = 15 
  • test/sasrealspace/test/sim_validation.py

    r5777106 r8c9ffde  
    1212except: 
    1313    print "Testing installed version" 
    14     import sans.realspace.VolumeCanvas as VolumeCanvas 
     14    import sas.realspace.VolumeCanvas as VolumeCanvas 
    1515      
    1616class Validator: 
     
    7070     
    7171    def __init__(self, radius=15, density = 0.01): 
    72         from sans.models.SphereModel import SphereModel 
     72        from sas.models.SphereModel import SphereModel 
    7373         
    7474        self.name = 'sphere' 
     
    9696     
    9797    def __init__(self, radius=15, length=100, density = 0.01): 
    98         from sans.models.CylinderModel import CylinderModel 
     98        from sas.models.CylinderModel import CylinderModel 
    9999         
    100100        self.name = 'cylinder' 
     
    127127     
    128128    def __init__(self, radius_a=60, radius_b=10, density = 0.01): 
    129         from sans.models.EllipsoidModel import EllipsoidModel 
    130         #from sans.models.SphereModel import SphereModel 
     129        from sas.models.EllipsoidModel import EllipsoidModel 
     130        #from sas.models.SphereModel import SphereModel 
    131131         
    132132        self.name = 'ellipsoid' 
     
    186186     
    187187    def __init__(self, radius=15, thickness=5, density = 0.01): 
    188         from sans.models.CoreShellModel import CoreShellModel 
     188        from sas.models.CoreShellModel import CoreShellModel 
    189189         
    190190        self.name = 'coreshell' 
  • test/sasrealspace/test/utest_oriented.py

    r5777106 r8c9ffde  
    2121    #testing the version that is working on 
    2222    print "Testing installed version" 
    23     import sans.realspace.VolumeCanvas as VolumeCanvas 
     23    import sas.realspace.VolumeCanvas as VolumeCanvas 
    2424  
    2525 
     
    3131            Set up canvas 
    3232        """ 
    33         from sans.models.SphereModel import SphereModel 
     33        from sas.models.SphereModel import SphereModel 
    3434        self.model = VolumeCanvas.VolumeCanvas() 
    3535     
     
    6565    def setUp(self): 
    6666        """ Set up cylinder model """ 
    67         from sans.models.CylinderModel import CylinderModel 
     67        from sas.models.CylinderModel import CylinderModel 
    6868        radius = 5 
    6969        length = 40 
     
    108108    def setUp(self): 
    109109        """ Set up cylinder model """ 
    110         from sans.models.CylinderModel import CylinderModel 
     110        from sas.models.CylinderModel import CylinderModel 
    111111        radius = 5 
    112112        length = 40 
     
    175175    def setUp(self): 
    176176        """ Set up ellipsoid """ 
    177         from sans.models.EllipsoidModel import EllipsoidModel 
     177        from sas.models.EllipsoidModel import EllipsoidModel 
    178178         
    179179        radius_a = 60 
     
    249249    def setUp(self): 
    250250        """ Set up zero-SLD-average core-shell model """ 
    251         from sans.models.CoreShellModel import CoreShellModel 
     251        from sas.models.CoreShellModel import CoreShellModel 
    252252         
    253253        radius = 15 
     
    302302    def setUp(self): 
    303303        """ Set up zero-SLD-average core-shell model """ 
    304         from sans.models.CoreShellModel import CoreShellModel 
     304        from sas.models.CoreShellModel import CoreShellModel 
    305305         
    306306        radius = 15 
     
    355355    def setUp(self): 
    356356        """ Set up ellipsoid """ 
    357         from sans.models.EllipsoidModel import EllipsoidModel 
     357        from sas.models.EllipsoidModel import EllipsoidModel 
    358358         
    359359        radius_a = 10 
     
    439439    def setUp(self): 
    440440        """ Set up cylinder model """ 
    441         from sans.models.CylinderModel import CylinderModel 
     441        from sas.models.CylinderModel import CylinderModel 
    442442        radius = 5 
    443443        length = 40 
  • test/sasrealspace/test/utest_realspace.py

    r5777106 r8c9ffde  
    2121    #testing the version that is working on 
    2222    print "Testing installed version" 
    23     import sans.realspace.VolumeCanvas as VolumeCanvas 
     23    import sas.realspace.VolumeCanvas as VolumeCanvas 
    2424      
    2525class TestRealSpaceModel(unittest.TestCase): 
     
    131131            the user doesnt have to do it if he doesn't need to. 
    132132        """ 
    133         from sans.models.SphereModel import SphereModel 
     133        from sas.models.SphereModel import SphereModel 
    134134        sphere = SphereModel() 
    135135        sphere.setParam('radius', 10.0) 
     
    295295 
    296296    def setUp(self): 
    297         from sans.models.CoreShellModel import CoreShellModel 
     297        from sas.models.CoreShellModel import CoreShellModel 
    298298        radius = 15 
    299299        thickness = 5 
     
    355355         
    356356    def testWrongOrder(self): 
    357         from sans.models.SphereModel import SphereModel 
     357        from sas.models.SphereModel import SphereModel 
    358358        self.set_coreshell_on_canvas(1, 0) 
    359359         
Note: See TracChangeset for help on using the changeset viewer.