Changeset aaf5e49 in sasview for test/pr_inversion
- Timestamp:
- May 1, 2017 12:42:59 AM (8 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.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 7b15990
- Parents:
- a1b8fee
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/pr_inversion/test/utest_invertor.py
r17c9436 raaf5e49 6 6 # Disable "too many methods" complaint 7 7 # pylint: disable-msg=R0904 8 8 from __future__ import print_function 9 9 10 10 … … 240 240 self.assertTrue(chi2/51.0<10.0) 241 241 except: 242 print "chi2 =", chi2/51.0242 print("chi2 =", chi2/51.0) 243 243 raise 244 244 … … 268 268 self.assertTrue(self.invertor.chi2/len(x)<200.00) 269 269 except: 270 print "Chi2(I(q)) =", self.invertor.chi2/len(x)270 print("Chi2(I(q)) =", self.invertor.chi2/len(x)) 271 271 raise 272 272 … … 302 302 self.assertTrue(chi2/51.0<50.0) 303 303 except: 304 print "chi2(P(r)) =", chi2/51.0304 print("chi2(P(r)) =", chi2/51.0) 305 305 raise 306 306 … … 346 346 self.assertTrue(self.invertor.chi2>0) 347 347 except: 348 print "Chi2 =", self.invertor.chi2348 print("Chi2 =", self.invertor.chi2) 349 349 raise 350 350 … … 370 370 self.assertTrue(self.invertor.chi2>0) 371 371 except: 372 print "Chi2 =", self.invertor.chi2372 print("Chi2 =", self.invertor.chi2) 373 373 raise 374 374
Note: See TracChangeset
for help on using the changeset viewer.