Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/tesseract_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,13 @@ struct Args {
std::vector<double> inner_products(config.dem.count_detectors());

if (!detector_coords.size() || !detector_coords.at(0).size()) {
// If there are no detector coordinates, just use the standard ordering
// of the indices.
// If there are no detector coordinates, just use the standard
// ordering of the indices.
for (size_t det_order = 0; det_order < num_det_orders; ++det_order) {
config.det_orders.emplace_back();
std::iota(config.det_orders.back().begin(), config.det_orders.front().end(), 0);
config.det_orders[det_order].resize(config.dem.count_detectors());
std::iota(config.det_orders[det_order].begin(), config.det_orders[det_order].end(), 0);
}

} else {
// Use the coordinates to order the detectors based on a random
// orientation
Expand Down Expand Up @@ -694,4 +695,4 @@ int main(int argc, char* argv[]) {
std::cout << " total_time_seconds = " << total_time_seconds;
std::cout << std::endl;
}
}
}