- Timestamp:
- Jan 20, 2010 3:32:46 PM (15 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:
- 76c1727
- Parents:
- 97603c0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Invariant/test/utest_data_handling.py
r97603c0 r889d5ab4 305 305 # to have the radius and the scale fitted 306 306 307 test_y = numpy.zeros(len(self.data.x))308 smearer = smear_selection(self.data)309 first_bin, last_bin = smearer.get_bin_range(min(self.data.x),310 max(self.data.x))311 test_y[first_bin:last_bin] = inv._low_extrapolation_function.evaluate_model(self.data.x[first_bin:last_bin])312 test_y = smearer(test_y, first_bin, last_bin)313 314 for i in range(len(self.data.x)):315 value = math.fabs(test_y[i]-reel_y[i])/reel_y[i]316 self.assert_(value < 0.001)317 318 # test data coming out of the invariant319 307 test_y = inv._low_extrapolation_function.evaluate_model(x=self.data.x) 320 308 for i in range(len(self.data.x)):
Note: See TracChangeset
for help on using the changeset viewer.