Skip to content

Commit

Permalink
fix writing of single-TOF bin data
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisThielemans committed May 19, 2024
1 parent b1333e7 commit 53c9d05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IO/interfile.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,7 @@ write_basic_interfile_PDFS_header(const string& header_file_name, const string&

// it's PET data if we get here
// N.E. Added timing locations
const bool is_TOF = pdfs.get_proj_data_info_sptr()->get_num_tof_poss() > 1;
const bool is_TOF = pdfs.get_proj_data_info_sptr()->is_tof_data();
output_header << "number of dimensions := " + std::to_string(is_TOF ? 5 : 4) + "\n";

// TODO support more ?
Expand Down

0 comments on commit 53c9d05

Please sign in to comment.