Thanks to visit codestin.com
Credit goes to github.com

Skip to content

test condition in test_proj_data_info_subsets.cxx is wrong #1627

@KrisThielemans

Description

@KrisThielemans

if ((template_sino_sptr->get_min_segment_num() > 0) && (template_sino_sptr->get_max_segment_num() < 1))
{
cerr << "Error: Template provided doesn't have enough segments to conduct this test with "
<< template_sino_sptr->get_num_segments() << " segments." << std::endl;
everything_ok = false;
}

This should be template_sino_sptr->get_min_segment_num() > -1).
Also, I don't think this test should fail if the input data doesn't have enough segments, it should just return.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions