- Timestamp:
- Dec 27, 2013 2:32:25 PM (11 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:
- 19b628f
- Parents:
- 941a0b8 (diff), 81b524f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Location:
- test
- Files:
-
- 10 added
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
test/sansdataloader/test/cansas1d.xml
r5777106 reda8972 49 49 50 50 </SASsample> 51 <SASinstrument name="TEST instrument">51 <SASinstrument> 52 52 <name>canSAS instrument</name> 53 53 <SASsource name="source name"> … … 85 85 4.150 86 86 </SDD> 87 <orientation> 87 <offset> 88 <x unit="mm">1</x> 89 <y unit="mm">2</y> 90 </offset> 91 <orientation> 88 92 <roll unit="degree">1.00</roll> 89 93 <pitch unit="degree">0.00</pitch> 90 94 <yaw unit="degree">0.00</yaw> 91 95 </orientation> 92 <offset>93 <x unit="mm">1</x>94 <y unit="mm">2</y>95 </offset>96 96 <beam_center> 97 97 <x unit="mm">322.64</x> … … 135 135 <term name="ABS:IZERO">230.09</term> 136 136 <term name="ABS:XSECT" unit="mm">1</term> 137 <SASprocessnote />137 <SASprocessnote>No Information</SASprocessnote> 138 138 </SASprocess> 139 139 <SASnote /> -
test/sansdataloader/test/cansas1d_badunits.xml
r5777106 reda8972 49 49 50 50 </SASsample> 51 <SASinstrument name="TEST instrument">51 <SASinstrument> 52 52 <name>canSAS instrument</name> 53 53 <SASsource name="source name"> … … 85 85 4.150 86 86 </SDD> 87 <orientation> 87 <offset> 88 <x unit="nm">1000000</x> 89 <y unit="micron">2000</y> 90 </offset> 91 <orientation> 88 92 <roll unit="radian">.0174533</roll> 89 93 <pitch unit="rad">0.00</pitch> 90 94 <yaw unit="radian">0.00</yaw> 91 95 </orientation> 92 <offset>93 <x unit="nm">1000000</x>94 <y unit="micron">2000</y>95 </offset>96 96 <beam_center> 97 97 <x unit="m">.32264</x> -
test/sansdataloader/test/cansas1d_slit.xml
r5777106 reda8972 14 14 <I unit="1/cm">1000</I> 15 15 <Idev unit="1/cm">3</Idev> 16 <dQw unit="1/A">0.001</dQw> 16 17 <dQl unit="1/A">0.005</dQl> 17 <dQw unit="1/A">0.001</dQw> 18 <Shadowfactor><!-- Shadowfactor is optional --></Shadowfactor> 18 <Shadowfactor><!-- Shadowfactor is optional --></Shadowfactor> 19 19 </Idata> 20 20 <Idata> … … 22 22 <I unit="1/cm">1001</I> 23 23 <Idev unit="1/cm">4</Idev> 24 <dQw unit="1/A">0.001</dQw> 24 25 <dQl unit="1/A">0.005</dQl> 25 <dQw unit="1/A">0.001</dQw> 26 <Shadowfactor><!-- Shadowfactor is optional --></Shadowfactor> 26 <Shadowfactor><!-- Shadowfactor is optional --></Shadowfactor> 27 27 </Idata> 28 28 </SASdata> … … 49 49 50 50 </SASsample> 51 <SASinstrument name="TEST instrument">51 <SASinstrument> 52 52 <name>canSAS instrument</name> 53 53 <SASsource name="source name"> … … 85 85 4.150 86 86 </SDD> 87 <orientation> 87 <offset> 88 <x unit="mm">1</x> 89 <y unit="mm">2</y> 90 </offset> 91 <orientation> 88 92 <roll unit="degree">1.00</roll> 89 93 <pitch unit="degree">0.00</pitch> 90 94 <yaw unit="degree">0.00</yaw> 91 95 </orientation> 92 <offset>93 <x unit="mm">1</x>94 <y unit="mm">2</y>95 </offset>96 96 <beam_center> 97 97 <x unit="mm">322.64</x> -
test/sansdataloader/test/cansas1d_units.xml
r5777106 r75eeb425 49 49 50 50 </SASsample> 51 <SASinstrument name="TEST instrument">51 <SASinstrument> 52 52 <name>canSAS instrument</name> 53 53 <SASsource name="source name"> … … 85 85 4.150 86 86 </SDD> 87 <orientation> 87 <offset> 88 <x unit="nm">1000000</x> 89 <y unit="micron">2000</y> 90 </offset> 91 <orientation> 88 92 <roll unit="radian">.0174533</roll> 89 93 <pitch unit="rad">0.00</pitch> 90 94 <yaw unit="radian">0.00</yaw> 91 95 </orientation> 92 <offset>93 <x unit="nm">1000000</x>94 <y unit="micron">2000</y>95 </offset>96 96 <beam_center> 97 97 <x unit="m">.32264</x> -
test/sansdataloader/test/testLoad.py
r5777106 ra25d242 157 157 def testload6(self): 158 158 """test file with unknown extension""" 159 self.assertRaises( ValueError, self.L.load, 'hello.missing')159 self.assertRaises(RuntimeError, self.L.load, 'hello.missing') 160 160 161 161 # Lookup is not supported as a public method -
test/sansdataloader/test/test_3_columns.txt
r5777106 reda8972 2 2 #A=2.5 3 3 #B=4 4 0 2.83954 0.64 0.000000 2.83954 0.6 5 5 0.204082 3.44938 0.676531 6 6 0.408163 5.82026 0.753061 -
test/sansdataloader/test/utest_abs_reader.py
r5777106 r75eeb425 159 159 160 160 def setUp(self): 161 self.data = Loader().load("cansas1d.xml") 161 data = Loader().load("cansas1d.xml") 162 self.data = data[0] 162 163 163 164 def test_cansas_checkdata(self): … … 209 210 210 211 self.assertEqual(self.data.sample.orientation_unit, 'degree') 211 self.assert Equal(self.data.sample.orientation.x, 22.5)212 self.assert Equal(self.data.sample.orientation.y, 0.02)212 self.assertAlmostEqual(self.data.sample.orientation.x, 22.5, 6) 213 self.assertAlmostEqual(self.data.sample.orientation.y, 0.02, 6) 213 214 214 215 self.assertEqual(self.data.sample.details[0], "http://chemtools.chem.soton.ac.uk/projects/blog/blogs.php/bit_id/2720") … … 259 260 260 261 if _found1==False or _found2==False: 261 print item.distance262 262 raise RuntimeError, "Could not find all data %s %s" % (_found1, _found2) 263 263 … … 268 268 269 269 self.assertEqual(self.data.detector[0].orientation_unit, "degree") 270 self.assert Equal(self.data.detector[0].orientation.x, 1.0)270 self.assertAlmostEqual(self.data.detector[0].orientation.x, 1.0, 6) 271 271 self.assertEqual(self.data.detector[0].orientation.y, 0.0) 272 272 self.assertEqual(self.data.detector[0].orientation.z, 0.0) … … 319 319 filename = "write_test.xml" 320 320 r.write(filename, self.data) 321 self.data = Loader().load(filename) 321 data = Loader().load(filename) 322 self.data = data[0] 322 323 self.assertEqual(self.data.filename, filename) 323 324 self._checkdata() … … 329 330 """ 330 331 filename = "cansas1d_units.xml" 331 self.data = Loader().load(filename) 332 data = Loader().load(filename) 333 self.data = data[0] 332 334 self.assertEqual(self.data.filename, filename) 333 335 self._checkdata() … … 339 341 """ 340 342 filename = "cansas1d_badunits.xml" 341 self.data = Loader().load(filename) 343 data = Loader().load(filename) 344 self.data = data[0] 342 345 self.assertEqual(self.data.filename, filename) 343 346 # The followed should not have been loaded … … 355 358 """ 356 359 filename = "cansas1d_slit.xml" 357 self.data = Loader().load(filename) 360 data = Loader().load(filename) 361 self.data = data[0] 358 362 self.assertEqual(self.data.filename, filename) 359 363 self.assertEqual(self.data.run[0], "1234") … … 370 374 self.assertEqual(self.data.x[1], 0.03) 371 375 self.assertAlmostEquals(self.data.y[1], 1001.0) 372 self.assertEqual(self.data.dx [1], 0.0)376 self.assertEqual(self.data.dx, None) 373 377 self.assertEqual(self.data.dxl[1], 0.005) 374 378 self.assertEqual(self.data.dxw[1], 0.001) … … 376 380 self.assertEqual(self.data.run_name['1234'], 'run name') 377 381 self.assertEqual(self.data.title, "Test title") 378 382 379 383 380 384 -
test/sansdataloader/test/utest_cansas.py
rffbe487 r75eeb425 6 6 7 7 import unittest 8 from sans.dataloader.loader import Loader 9 from sans.dataloader.readers.cansas_reader_new import Reader 8 import numpy 9 import sans.dataloader.readers.cansas_reader as cansas 10 from sans.dataloader.loader import Loader 11 from sans.dataloader.data_info import Data1D 12 from sans.dataloader.readers.xml_reader import XMLreader 13 from sans.dataloader.readers.cansas_reader import Reader 14 from sans.dataloader.readers.cansas_constants import cansasConstants 10 15 11 16 import os 12 17 import sys 18 import urllib2 19 import StringIO 13 20 14 21 from lxml import etree 15 22 import xml.dom.minidom 16 _ZERO = 1e-1617 HAS_CONVERTER = True18 try:19 from sans.data_util.nxsunit import Converter20 except:21 HAS_CONVERTER = False22 23 23 CANSAS_ NS = "cansas1d/1.0"24 ALLOW_ALL = True 24 CANSAS_FORMAT = cansasConstants.CANSAS_FORMAT 25 CANSAS_NS = cansasConstants.CANSAS_NS 25 26 26 27 class cansas_reader(unittest.TestCase): … … 28 29 def setUp(self): 29 30 self.loader = Loader() 30 self.reader = Reader() 31 self.xml_valid = "cansas_test_modified.xml" 32 self.xml_invalid = "cansas_test.xml" 33 self.cansas1d_badunits = "cansas1d_badunits.xml" 34 self.cansas1d = "cansas1d.xml" 35 self.cansas1d_slit = "cansas1d_slit.xml" 36 self.cansas1d_units = "cansas1d_units.xml" 37 self.write_test = "write_test.xml" 38 self.isis_1_0 = "ISIS_1_0.xml" 39 self.isis_1_1 = "ISIS_1_1.xml" 40 self.isis_1_1_notrans = "ISIS_1_1_notrans.xml" 41 self.schema_1_0 = "cansas1d_v1_0.xsd" 42 self.schema_1_1 = "cansas1d_v1_1.xsd" 31 43 32 def test_checkdata(self): 33 output = [] 34 ns = [] 35 path = "cansas_test.xml" 36 if os.path.isfile(path): 37 basename = os.path.basename(path) 38 root, extension = os.path.splitext(basename) 39 if ALLOW_ALL or extension.lower() in self.ext: 40 try: 41 tree = tree = etree.parse(path, parser=etree.ETCompatXMLParser()) 42 # Check the format version number 43 # Specifying the namespace will take care of the file 44 # format version 45 for elem in tree.iter(): 46 tag = elem.tag.replace('{cansas1d/1.0}', '') 47 print 'element: {0}, stripped element: {1}, value: {2}'.format( 48 elem.tag, tag, elem.text) 49 # reader_return = self.reader._parse_entry(tree) 50 51 except Exception as e: 52 exc_type, exc_obj, exc_tb = sys.exc_info() 53 fname = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1] 54 print(exc_type, fname, exc_tb.tb_lineno) 44 45 def get_number_of_entries(self, dictionary, name, i): 46 if dictionary.get(name) is not None: 47 i += 1 48 name = name.split("_")[0] 49 name += "_{0}".format(i) 50 name = self.get_number_of_entries(dictionary, name, i) 51 return name 52 53 54 def test_xml_validate(self): 55 string = "<xsd:schema xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\n" 56 string += "\t<xsd:element name=\"a\" type=\"AType\"/>\n" 57 string += "\t<xsd:complexType name=\"AType\">\n" 58 string += "\t\t<xsd:sequence>\n" 59 string += "\t\t\t<xsd:element name=\"b\" type=\"xsd:string\" />\n" 60 string += "\t\t</xsd:sequence>\n" 61 string += "\t</xsd:complexType>\n" 62 string += "</xsd:schema>" 63 f = StringIO.StringIO(string) 64 xmlschema_doc = etree.parse(f) 65 xmlschema = etree.XMLSchema(xmlschema_doc) 66 valid = etree.parse(StringIO.StringIO('<a><b></b></a>')) 67 invalid = etree.parse(StringIO.StringIO('<a><c></c></a>')) 68 self.assertTrue(xmlschema.validate(valid)) 69 self.assertFalse(xmlschema.validate(invalid)) 55 70 56 print(output)57 71 72 def test_real_xml(self): 73 reader = XMLreader(self.xml_valid, self.schema_1_0) 74 valid = reader.validateXML() 75 if valid: 76 self.assertTrue(valid) 77 else: 78 self.assertFalse(valid) 79 80 81 def test_cansas_xml(self): 82 filename = "isis_1_1_write_test.xml" 83 xmlreader = XMLreader(self.isis_1_1, self.schema_1_1) 84 valid = xmlreader.validateXML() 85 self.assertTrue(valid) 86 reader = Reader() 87 dataloader = reader.read(self.isis_1_1) 88 for data in dataloader: 89 self.assertTrue(data.title == "TK49 c10_SANS") 90 self.assertTrue(data.x.size == 138) 91 self.assertTrue(len(data.meta_data) == 2) 92 self.assertTrue(data.detector[0].distance_unit == "mm") 93 reader.write(filename, data) 94 reader2 = Reader() 95 return_data = reader2.read(filename) 96 data_new = return_data 97 self.data = return_data[0] 98 self.assertTrue(self.data.x.size == 138) 99 self.assertTrue(len(self.data.meta_data) == 2) 100 self.assertTrue(self.data.detector[0].distance_unit == "mm") 101 self.assertTrue(self.data.title == "TK49 c10_SANS") 102 103 def test_entry_name_recurse(self): 104 test_values = [1,2,3,4,5,6] 105 base_key = "key" 106 d = {} 107 for value in test_values: 108 new_key = self.get_number_of_entries(d, base_key, i = 0) 109 d[new_key] = value 110 self.assertTrue(len(d) == 6) 111 112 113 def test_load_cansas_file(self): 114 valid = [] 115 reader1 = XMLreader(self.xml_valid, self.schema_1_0) 116 self.assertTrue(reader1.validateXML()) 117 reader2 = XMLreader(self.xml_invalid, self.schema_1_0) 118 self.assertFalse(reader2.validateXML()) 119 reader3 = XMLreader(self.xml_valid, self.schema_1_1) 120 self.assertFalse(reader3.validateXML()) 121 reader4 = XMLreader(self.xml_invalid, self.schema_1_1) 122 self.assertFalse(reader4.validateXML()) 123 reader5 = XMLreader(self.isis_1_0, self.schema_1_0) 124 self.assertTrue(reader5.validateXML()) 125 reader6 = XMLreader(self.isis_1_1, self.schema_1_1) 126 self.assertTrue(reader6.validateXML()) 127 reader7 = XMLreader(self.isis_1_1, self.schema_1_0) 128 self.assertFalse(reader7.validateXML()) 129 130 131 def test_old_cansas_files(self): 132 reader1 = XMLreader(self.cansas1d, self.schema_1_0) 133 self.assertTrue(reader1.validateXML()) 134 reader2 = XMLreader(self.cansas1d_units, self.schema_1_0) 135 self.assertTrue(reader2.validateXML()) 136 reader3 = XMLreader(self.cansas1d_badunits, self.schema_1_0) 137 self.assertTrue(reader3.validateXML()) 138 reader4 = XMLreader(self.cansas1d_slit, self.schema_1_0) 139 self.assertTrue(reader4.validateXML()) 140 reader5 = XMLreader(self.write_test, self.schema_1_0) 141 self.assertTrue(reader5.validateXML()) 142 143 58 144 if __name__ == '__main__': 59 unittest.main() 145 unittest.main() -
test/sansdataloader/test/write_test.xml
r5777106 r75eeb425 16 16 1000.0 17 17 </I> 18 <Idev unit="1/cm"> 19 3.0 20 </Idev> 18 21 <Qdev unit="1/A"> 19 22 0.01 20 23 </Qdev> 21 <dQl unit="1/A">22 0.023 </dQl>24 <dQw unit="1/A">25 0.026 </dQw>27 <Idev unit="1/cm">28 3.029 </Idev>30 24 </Idata> 31 25 <Idata> … … 36 30 1001.0 37 31 </I> 32 <Idev unit="1/cm"> 33 4.0 34 </Idev> 38 35 <Qdev unit="1/A"> 39 36 0.02 40 37 </Qdev> 41 <dQl unit="1/A">42 0.043 </dQl>44 <dQw unit="1/A">45 0.046 </dQw>47 <Idev unit="1/cm">48 4.049 </Idev>50 38 </Idata> 51 39 </SASdata> … … 63 51 0.0 64 52 </temperature> 65 <details>66 http://chemtools.chem.soton.ac.uk/projects/blog/blogs.php/bit_id/272067 </details>68 <details>69 Some text here70 </details>71 53 <position> 72 54 <x unit="mm"> … … 85 67 </pitch> 86 68 </orientation> 69 <details> 70 http://chemtools.chem.soton.ac.uk/projects/blog/blogs.php/bit_id/2720 71 </details> 72 <details> 73 Some text here 74 </details> 87 75 </SASsample> 88 76 <SASinstrument> … … 94 82 neutron 95 83 </radiation> 84 <beam_size name="bm"> 85 <x unit="mm"> 86 12.0 87 </x> 88 <y unit="mm"> 89 13.0 90 </y> 91 </beam_size> 96 92 <beam_shape> 97 93 disc 98 94 </beam_shape> 99 <beam_size name="bm">100 <x unit="mm">101 12.0102 </x>103 <y unit="mm">104 13.0105 </y>106 </beam_size>107 95 <wavelength unit="A"> 108 96 6.0 … … 123 111 </length> 124 112 <aperture name="source" type="radius"> 125 <distance unit="mm">126 11000127 </distance>128 113 <size> 129 114 <x unit="mm"> … … 131 116 </x> 132 117 </size> 118 <distance unit="mm"> 119 11000.0 120 </distance> 133 121 </aperture> 134 122 <aperture name="sample" type="radius"> 135 <size name="size name">123 <size> 136 124 <x unit="mm"> 137 125 1.0 … … 145 133 </name> 146 134 <SDD unit="mm"> 147 4150 135 4150.0 148 136 </SDD> 149 137 <offset> … … 155 143 </y> 156 144 </offset> 157 <beam_center>158 <x unit="mm">159 322.64160 </x>161 <y unit="mm">162 327.68163 </y>164 </beam_center>165 <pixel_size>166 <x unit="mm">167 5.0168 </x>169 <y unit="mm">170 5.0171 </y>172 </pixel_size>173 145 <orientation> 174 146 <roll unit="degree"> … … 182 154 </yaw> 183 155 </orientation> 156 <beam_center> 157 <x unit="mm"> 158 322.64 159 </x> 160 <y unit="mm"> 161 327.68 162 </y> 163 </beam_center> 164 <pixel_size> 165 <x unit="mm"> 166 5.0 167 </x> 168 <y unit="mm"> 169 5.0 170 </y> 171 </pixel_size> 184 172 </SASdetector> 185 173 </SASinstrument> … … 207 195 </term> 208 196 <SASprocessnote> 209 AvA1 0.0000E+00 AsA2 1.0000E+00 XvA3 1.0526E+03 XsA4 210 5.2200E-02 XfA5 0.0000E+00 211 </SASprocessnote> 212 <SASprocessnote> 213 S... 13597 0 2.26E+02 2A 5mM 0%D2O Sbak 13594 0 1.13E+02 214 H2O Buffer 215 </SASprocessnote> 216 <SASprocessnote> 217 V... 13552 3 1.00E+00 H2O5m 197 218 198 </SASprocessnote> 219 199 </SASprocess> … … 258 238 1 259 239 </term> 240 <SASprocessnote> 241 242 </SASprocessnote> 260 243 </SASprocess> 244 <SASnote/> 261 245 </SASentry> 262 246 </SASroot> -
test/pr_inversion/test/test_output.txt
r81b524f r5777106 3 3 #alpha=0.0007 4 4 #chi2=836.797 5 #elapsed=0.000 9999285 #elapsed=0.000825167 6 6 #qmin=None 7 7 #qmax=None -
test/sansguiframe/test/cansas1d.xml
r75eeb425 r5777106 49 49 50 50 </SASsample> 51 <SASinstrument >51 <SASinstrument name="TEST instrument"> 52 52 <name>canSAS instrument</name> 53 53 <SASsource name="source name"> … … 85 85 4.150 86 86 </SDD> 87 <offset> 88 <x unit="mm">1</x> 89 <y unit="mm">2</y> 90 </offset> 91 <orientation> 87 <orientation> 92 88 <roll unit="degree">1.00</roll> 93 89 <pitch unit="degree">0.00</pitch> 94 90 <yaw unit="degree">0.00</yaw> 95 91 </orientation> 92 <offset> 93 <x unit="mm">1</x> 94 <y unit="mm">2</y> 95 </offset> 96 96 <beam_center> 97 97 <x unit="mm">322.64</x> … … 135 135 <term name="ABS:IZERO">230.09</term> 136 136 <term name="ABS:XSECT" unit="mm">1</term> 137 <SASprocessnote >No Information</SASprocessnote>137 <SASprocessnote/> 138 138 </SASprocess> 139 139 <SASnote /> -
test/sansguiframe/test/utest_manipulations.py
r75eeb425 r5777106 15 15 16 16 def setUp(self): 17 data = Loader().load("cansas1d.xml") 18 self.data = data[0] 17 self.data = Loader().load("cansas1d.xml") 19 18 20 19 def test_clone1D(self): … … 30 29 31 30 def setUp(self): 32 data = Loader().load("cansas1d.xml") 33 self.data = data[0] 31 self.data = Loader().load("cansas1d.xml") 34 32 35 33 def test_clone_theory1D(self): -
test/sansinvariant/test/utest_data_handling.py
r75eeb425 r5777106 92 92 """ 93 93 def setUp(self): 94 data = Loader().load("latex_smeared_slit.xml") 95 self.data = data[0] 94 self.data = Loader().load("latex_smeared_slit.xml") 96 95 self.data.dxl = None 97 96 -
test/sansmodels/test/cansas1d_slit.xml
r75eeb425 r5777106 14 14 <I unit="1/cm">1000</I> 15 15 <Idev unit="1/cm">3</Idev> 16 <dQl unit="1/A">0.005</dQl> 16 17 <dQw unit="1/A">0.001</dQw> 17 <dQl unit="1/A">0.005</dQl> 18 <Shadowfactor><!-- Shadowfactor is optional --></Shadowfactor> 18 <Shadowfactor><!-- Shadowfactor is optional --></Shadowfactor> 19 19 </Idata> 20 20 <Idata> … … 22 22 <I unit="1/cm">1001</I> 23 23 <Idev unit="1/cm">4</Idev> 24 <dQl unit="1/A">0.005</dQl> 24 25 <dQw unit="1/A">0.001</dQw> 25 <dQl unit="1/A">0.005</dQl> 26 <Shadowfactor><!-- Shadowfactor is optional --></Shadowfactor> 26 <Shadowfactor><!-- Shadowfactor is optional --></Shadowfactor> 27 27 </Idata> 28 28 </SASdata> … … 49 49 50 50 </SASsample> 51 <SASinstrument >51 <SASinstrument name="TEST instrument"> 52 52 <name>canSAS instrument</name> 53 53 <SASsource name="source name"> … … 85 85 4.150 86 86 </SDD> 87 <offset> 88 <x unit="mm">1</x> 89 <y unit="mm">2</y> 90 </offset> 91 <orientation> 87 <orientation> 92 88 <roll unit="degree">1.00</roll> 93 89 <pitch unit="degree">0.00</pitch> 94 90 <yaw unit="degree">0.00</yaw> 95 91 </orientation> 92 <offset> 93 <x unit="mm">1</x> 94 <y unit="mm">2</y> 95 </offset> 96 96 <beam_center> 97 97 <x unit="mm">322.64</x> -
test/sansmodels/test/utest_smearing.py
r75eeb425 r5777106 16 16 17 17 def setUp(self): 18 data = Loader().load("cansas1d_slit.xml") 19 self.data = data[0] 18 self.data = Loader().load("cansas1d_slit.xml") 20 19 21 20 x = 0.001*numpy.arange(1,11)
Note: See TracChangeset
for help on using the changeset viewer.