Changeset 35ec279 in sasview for test/sascalculator


Ignore:
Timestamp:
Feb 13, 2015 4:08:43 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:
b9a5f0e
Parents:
8c9ffde
Message:

Completed the SANS to SAS conversion on the tests. src.sas is left.

Location:
test/sascalculator/test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • test/sascalculator/test/utest_resolution_calculator.py

    r8c9ffde r35ec279  
    44 
    55import unittest 
    6 from  sans.calculator.resolution_calculator import ResolutionCalculator \ 
     6from  sas.calculator.resolution_calculator import ResolutionCalculator \ 
    77                                            as calculator 
    88 
  • test/sascalculator/test/utest_sans_gen.py

    r8c9ffde r35ec279  
    11""" 
    2 Unit tests for the sans_gen 
     2Unit tests for the sas_gen 
    33""" 
    44import warnings 
     
    66 
    77import unittest 
    8 from sans.calculator import sans_gen 
    9 from sans.models.SphereModel import SphereModel 
     8from sas.calculator import sas_gen 
     9from sas.models.SphereModel import SphereModel 
    1010 
    1111import numpy 
     
    1313import os.path 
    1414 
    15 class sans_gen_test(unittest.TestCase): 
     15class sas_gen_test(unittest.TestCase): 
    1616     
    1717    def setUp(self): 
    18         self.sldloader = sans_gen.SLDReader() 
    19         self.pdbloader = sans_gen.PDBReader() 
    20         self.omfloader = sans_gen.OMFReader()  
     18        self.sldloader = sas_gen.SLDReader() 
     19        self.pdbloader = sas_gen.PDBReader() 
     20        self.omfloader = sas_gen.OMFReader()  
    2121        self.comp = SphereModel() 
    2222         
     
    4444        """ 
    4545        f = self.omfloader.read("A_Raw_Example-1.omf") 
    46         output = sans_gen.OMF2SLD() 
     46        output = sas_gen.OMF2SLD() 
    4747        output.set_data(f) 
    4848        self.assertEqual(f.mx[0], 0) 
     
    5757        sld_data = self.sldloader.read("sphere697_r30.sld") 
    5858        # Generic computation   
    59         model = sans_gen.GenSAS() 
     59        model = sas_gen.GenSAS() 
    6060        model.setParam('background', 0.0) 
    6161        model.setParam('scale', 1.0) 
  • test/sascalculator/test/utest_slit_length_calculator.py

    r8c9ffde r35ec279  
    44 
    55import unittest 
    6 from sans.dataloader.readers.ascii_reader import Reader 
    7 from  sans.calculator.slit_length_calculator import SlitlengthCalculator as calculator 
     6from sas.dataloader.readers.ascii_reader import Reader 
     7from  sas.calculator.slit_length_calculator import SlitlengthCalculator as calculator 
    88 
    99import os.path 
Note: See TracChangeset for help on using the changeset viewer.