Skip to content

Commit

Permalink
remove checks for n_iters from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael McLeod committed Jul 17, 2023
1 parent 3d20e49 commit a1d441f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cpp/tests/algo_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ TEST_CASE("padmm_factory") {
imsizex, sara.size(), 300, true, true, false, 1e-2, 1e-3, 50, 1, op_norm);

auto const diagnostic = (*padmm)();
CHECK(diagnostic.niters == 10);
const Image<t_complex> image = Image<t_complex>::Map(diagnostic.x.data(), imsizey, imsizex);
// pfitsio::write2d(image.real(), expected_solution_path);
CAPTURE(Vector<t_complex>::Map(solution.data(), solution.size()).real().head(10));
Expand Down Expand Up @@ -112,7 +111,6 @@ TEST_CASE("primal_dual_factory", "[!shouldfail]") {
imsizey, imsizex, sara.size(), 20, true, true, 1e-2, 1, op_norm);

auto const diagnostic = (*primaldual)();
CHECK(diagnostic.niters == 16);
const Image<t_complex> image = Image<t_complex>::Map(diagnostic.x.data(), imsizey, imsizex);
// pfitsio::write2d(image.real(), expected_solution_path);
CAPTURE(Vector<t_complex>::Map(solution.data(), solution.size()).real().head(10));
Expand Down Expand Up @@ -169,7 +167,6 @@ TEST_CASE("fb_factory") {
gamma, imsizey, imsizex, sara.size(), 1000, true, true, false, 1e-2, 1e-3, 50, op_norm);

auto const diagnostic = (*fb)();
CHECK(diagnostic.niters == 11);
const Image<t_complex> image = Image<t_complex>::Map(diagnostic.x.data(), imsizey, imsizex);
// pfitsio::write2d(image.real(), expected_solution_path);
CAPTURE(Vector<t_complex>::Map(solution.data(), solution.size()).real().head(10));
Expand Down Expand Up @@ -236,7 +233,6 @@ TEST_CASE("joint_map_factory") {
.beta(1.)
.alpha(1.);
auto const diagnostic = joint_map();
// CHECK(diagnostic.reg_niters == 13);
const Image<t_complex> image = Image<t_complex>::Map(diagnostic.x.data(), imsizey, imsizex);
// CAPTURE(Vector<t_complex>::Map(solution.data(), solution.size()).real().head(10));
// CAPTURE(Vector<t_complex>::Map(image.data(), image.size()).real().head(10));
Expand Down

0 comments on commit a1d441f

Please sign in to comment.