Changeset 6f65614 in sasview for sansdataloader
- Timestamp:
- Jun 13, 2012 7:17:35 PM (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:
- 2bd55e8
- Parents:
- 6c88acd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansdataloader/test/utest_manipulations.py
r37dea17 r6f65614 195 195 self.assertEqual(result.data[i], 5.0) 196 196 self.assertEqual(result.err_data[i], 0.5) 197 198 result = 3.0+self.data199 for i in range(25):200 self.assertEqual(result.data[i], 5.0)201 self.assertEqual(result.err_data[i], 0.5)197 #Currently NOT supported 198 #result = 3.0+self.data 199 #for i in range(25): 200 # self.assertEqual(result.data[i], 5.0) 201 # self.assertEqual(result.err_data[i], 0.5) 202 202 203 203 def test_rsub(self): … … 206 206 self.assertEqual(result.data[i], -1.0) 207 207 self.assertEqual(result.err_data[i], 0.5) 208 209 result = 3.0-self.data210 for i in range(25):211 self.assertEqual(result.data[i], 1.0)212 self.assertEqual(result.err_data[i], 0.5)208 #Currently NOT supported 209 #result = 3.0-self.data 210 #for i in range(25): 211 # self.assertEqual(result.data[i], 1.0) 212 # self.assertEqual(result.err_data[i], 0.5) 213 213 214 214 def test_rmul(self): … … 217 217 self.assertEqual(result.data[i], 6.0) 218 218 self.assertEqual(result.err_data[i], 1.5) 219 220 result = 3.0*self.data221 for i in range(25):222 self.assertEqual(result.data[i], 6.0)223 self.assertEqual(result.err_data[i], 1.5)219 #Currently NOT supported 220 #result = 3.0*self.data 221 #for i in range(25): 222 # self.assertEqual(result.data[i], 6.0) 223 # self.assertEqual(result.err_data[i], 1.5) 224 224 225 225 def test_rdiv(self): … … 228 228 self.assertEqual(result.data[i], 0.5) 229 229 self.assertEqual(result.err_data[i], 0.125) 230 231 result = 6.0/self.data232 for i in range(25):233 self.assertEqual(result.data[i], 3.0)234 self.assertEqual(result.err_data[i], 6.0*0.5/4.0)235 230 #Currently NOT supported 231 #result = 6.0/self.data 232 #for i in range(25): 233 # self.assertEqual(result.data[i], 3.0) 234 # self.assertEqual(result.err_data[i], 6.0*0.5/4.0) 235 236 236 237 237 if __name__ == '__main__':
Note: See TracChangeset
for help on using the changeset viewer.