Skip to content

Commit

Permalink
use interfile information for frame difinition if all event are used,…
Browse files Browse the repository at this point in the history
… throwing a warning otherwise
  • Loading branch information
danieldeidda committed Oct 2, 2024
1 parent 31e730e commit e379262
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/listmode_buildblock/LmToProjData.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,9 @@ LmToProjData::set_up()
else if (frame_defs.get_num_frames() < 1)
{
// make a single frame starting from 0. End value will be ignored.
vector<pair<double, double>> frame_times(1, pair<double, double>(0, 0));
frame_defs = TimeFrameDefinitions(frame_times);
frame_defs = lm_data_ptr->get_exam_info_sptr()->get_time_frame_definitions();
if (num_events_to_store!=0)
warning("A sub-sumple of the total events has been selected. The frame duration will be incorrect");
}

return Succeeded::yes;
Expand Down

0 comments on commit e379262

Please sign in to comment.