Changeset ca3b9c5d in sasview for sansdataloader/test
- Timestamp:
- Aug 9, 2011 11:18:55 AM (13 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:
- 804dd60
- Parents:
- d075f58
- Location:
- sansdataloader/test
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
sansdataloader/test/testLoad.py
raab4e15 rca3b9c5d 14 14 import unittest 15 15 import math 16 import DataLoader17 from DataLoader.loader import Loader16 import sans.dataloader 17 from sans.dataloader.loader import Loader 18 18 19 19 # Check whether we should test image loading on this system -
sansdataloader/test/testplugings.py
raab4e15 rca3b9c5d 4 4 5 5 import unittest 6 from DataLoader.loader import Loader, Registry6 from sans.dataloader.loader import Loader, Registry 7 7 class testLoader(unittest.TestCase): 8 8 -
sansdataloader/test/utest_abs_reader.py
raab4e15 rca3b9c5d 5 5 import unittest 6 6 import numpy, math 7 from DataLoader.loader import Loader8 from DataLoader.data_info import Data1D7 from sans.dataloader.loader import Loader 8 from sans.dataloader.data_info import Data1D 9 9 10 10 import os.path … … 13 13 14 14 def setUp(self): 15 from DataLoader.readers.abs_reader import Reader15 from sans.dataloader.readers.abs_reader import Reader 16 16 self.data = Reader().read("jan08002.ABS") 17 17 … … 311 311 312 312 def test_writer(self): 313 from DataLoader.readers.cansas_reader import Reader313 from sans.dataloader.readers.cansas_reader import Reader 314 314 r = Reader() 315 315 x = numpy.ones(5) -
sansdataloader/test/utest_ascii.py
raab4e15 rca3b9c5d 6 6 7 7 import unittest 8 from DataLoader.loader import Loader8 from sans.dataloader.loader import Loader 9 9 10 10 import os.path -
sansdataloader/test/utest_averaging.py
raab4e15 rca3b9c5d 2 2 import unittest 3 3 4 from DataLoader.loader import Loader5 from DataLoader.manipulations import Ring, CircularAverage, SectorPhi, get_q,reader2D_converter4 from sans.dataloader.loader import Loader 5 from sans.dataloader.manipulations import Ring, CircularAverage, SectorPhi, get_q,reader2D_converter 6 6 7 7 import os.path 8 8 import numpy, math 9 import DataLoader.data_info as data_info9 import sans.dataloader.data_info as data_info 10 10 11 11 class Averaging(unittest.TestCase): … … 136 136 The test data was not generated by IGOR. 137 137 """ 138 from DataLoader.manipulations import Boxsum, Boxavg138 from sans.dataloader.manipulations import Boxsum, Boxavg 139 139 140 140 r = Boxsum(x_min=.01, x_max=.015, y_min=0.01, y_max=0.015) … … 153 153 The test data was not generated by IGOR. 154 154 """ 155 from DataLoader.manipulations import SlabX155 from sans.dataloader.manipulations import SlabX 156 156 157 157 r = SlabX(x_min=-.01, x_max=.01, y_min=-0.0002, y_max=0.0002, bin_width=0.0004) … … 170 170 The test data was not generated by IGOR. 171 171 """ 172 from DataLoader.manipulations import SlabY172 from sans.dataloader.manipulations import SlabY 173 173 174 174 r = SlabY(x_min=.005, x_max=.01, y_min=-0.01, y_max=0.01, bin_width=0.0004) … … 189 189 The test data was not generated by IGOR. 190 190 """ 191 from DataLoader.manipulations import SectorPhi191 from sans.dataloader.manipulations import SectorPhi 192 192 import math 193 193 … … 207 207 The test data was not generated by IGOR. 208 208 """ 209 from DataLoader.manipulations import SectorPhi209 from sans.dataloader.manipulations import SectorPhi 210 210 import math 211 211 … … 225 225 The test data was not generated by IGOR. 226 226 """ 227 from DataLoader.manipulations import SectorQ227 from sans.dataloader.manipulations import SectorQ 228 228 import math 229 229 -
sansdataloader/test/utest_manipulations.py
raab4e15 rca3b9c5d 6 6 import unittest 7 7 import numpy, math 8 from DataLoader.loader import Loader9 from DataLoader.data_info import Data1D, Data2D8 from sans.dataloader.loader import Loader 9 from sans.dataloader.data_info import Data1D, Data2D 10 10 11 11 import os.path -
sansdataloader/test/utest_red2d_reader.py
raab4e15 rca3b9c5d 6 6 7 7 import unittest 8 from DataLoader.loader import Loader8 from sans.dataloader.loader import Loader 9 9 10 10 import os.path
Note: See TracChangeset
for help on using the changeset viewer.