diff --git a/src/listmode_buildblock/LmToProjData.cxx b/src/listmode_buildblock/LmToProjData.cxx index edcce9519b..06b069481e 100644 --- a/src/listmode_buildblock/LmToProjData.cxx +++ b/src/listmode_buildblock/LmToProjData.cxx @@ -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> frame_times(1, pair(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;