Changeset be51cf6 in sasview for test/corfunc
- Timestamp:
- Sep 18, 2017 9:46:28 AM (7 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, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 5e2267e
- Parents:
- f12d96e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/corfunc/test/utest_corfunc.py
r253eb6c6 rbe51cf6 19 19 20 20 def extrapolate(self): 21 params, extrapolation = self.calculator.compute_extrapolation()21 params, extrapolation, s2 = self.calculator.compute_extrapolation() 22 22 23 23 # Check the extrapolation parameters … … 57 57 break 58 58 59 def transform_callback(self, transform): 60 self.assertIsNotNone(transform) 61 self.assertAlmostEqual(transform.y[0], 1) 62 self.assertAlmostEqual(transform.y[-1], 0, 5) 63 self.transformation = transform 59 def transform_callback(self, transforms): 60 transform1, transform3, idf = transforms 61 self.assertIsNotNone(transform1) 62 self.assertAlmostEqual(transform1.y[0], 1) 63 self.assertAlmostEqual(transform1.y[-1], 0, 5) 64 self.transformation = transform1 64 65 65 66 def extract_params(self): … … 77 78 test() 78 79 except Exception as e: 80 raise 79 81 self.fail("{} failed ({}: {})".format(test, type(e), e)) 80 82
Note: See TracChangeset
for help on using the changeset viewer.