Commit 9c75e11c7e1dfb3f11c2b6ba852bde8fa86331ba
1 parent
302c8f93
Adjust test result reference values after improving precision of GWcs::solidangle() method.
Showing
2 changed files
with
9 additions
and
7 deletions
inst/com/test/test_COM.cpp
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | * test_COM.cpp - test COM classes * |
| 3 | 3 | * ----------------------------------------------------------------------- * |
| 4 | - * copyright (C) 2012-2013 by Juergen Knoedlseder * | |
| 4 | + * copyright (C) 2012-2014 by Juergen Knoedlseder * | |
| 5 | 5 | * ----------------------------------------------------------------------- * |
| 6 | 6 | * * |
| 7 | 7 | * This program is free software: you can redistribute it and/or modify * |
| ... | ... | @@ -580,7 +580,7 @@ void TestGCOMOptimize::test_binned_optimizer(void) |
| 580 | 580 | 47, 0, |
| 581 | 581 | 29.9617, 0.377506, |
| 582 | 582 | 49, 0, |
| 583 | - 27.9993, 0.372603}; | |
| 583 | + 27.9992, 0.372603}; | |
| 584 | 584 | test_try("Perform LM optimization"); |
| 585 | 585 | try { |
| 586 | 586 | GOptimizerLM opt; | ... | ... |
inst/cta/test/test_CTA.cpp
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | * test_CTA.cpp - Test CTA classes * |
| 3 | 3 | * ----------------------------------------------------------------------- * |
| 4 | - * copyright (C) 2010-2013 by Juergen Knoedlseder * | |
| 4 | + * copyright (C) 2010-2014 by Juergen Knoedlseder * | |
| 5 | 5 | * ----------------------------------------------------------------------- * |
| 6 | 6 | * * |
| 7 | 7 | * This program is free software: you can redistribute it and/or modify * |
| ... | ... | @@ -335,7 +335,8 @@ void TestGCTAResponse::test_response_irf_diffuse(void) |
| 335 | 335 | { |
| 336 | 336 | // Set reference value |
| 337 | 337 | //double ref = 13803.800313356; |
| 338 | - const double ref = 13803.5186374; | |
| 338 | + //const double ref = 13803.5186374; | |
| 339 | + const double ref = 13796.8200974; // After GWcs::solidangle improvement | |
| 339 | 340 | |
| 340 | 341 | // Set parameters |
| 341 | 342 | double src_ra = 201.3651; |
| ... | ... | @@ -412,7 +413,8 @@ void TestGCTAResponse::test_response_npred_diffuse(void) |
| 412 | 413 | { |
| 413 | 414 | // Set reference value |
| 414 | 415 | //double ref = 11212.26274; // npred_spec precision of 1e-6 |
| 415 | - const double ref = 11212.437464; // npred_spec precision of 1e-5 | |
| 416 | + //const double ref = 11212.437464; // npred_spec precision of 1e-5 | |
| 417 | + const double ref = 11206.8536502; // After GWcs::solidangle improvement | |
| 416 | 418 | |
| 417 | 419 | // Set parameters |
| 418 | 420 | double src_ra = 201.3651; |
| ... | ... | @@ -766,10 +768,10 @@ void TestGCTAOptimize::test_binned_optimizer(void) |
| 766 | 768 | double fit_results[] = {83.6331, 0, |
| 767 | 769 | 22.0145, 0, |
| 768 | 770 | 5.616410411e-16, 1.904730785e-17, |
| 769 | - -2.481781246, -0.02580905077, | |
| 771 | + -2.47925, -0.02580905077, | |
| 770 | 772 | 300000, 0, |
| 771 | 773 | 1, 0, |
| 772 | - 2.933677595, 0.06639644824, | |
| 774 | + 2.93353, 0.06639644824, | |
| 773 | 775 | 6.550723074e-05, 1.945714239e-06, |
| 774 | 776 | -1.833781187, -0.0160819, |
| 775 | 777 | 1000000, 0, | ... | ... |