Commit 8c4d3c3
authored
fix the dets order issue (#43)
This fixes the fallback logic for the geometric ordering (when no
coordinates are present). originally we used emplace_back on a pre-sized
vector and std::iota with incorrect iterators, resulting in the detector
orders not being filled correctly.
this solves those errors with :
```
tesseract: src/tesseract.cc:106: TesseractDecoder::TesseractDecoder(TesseractConfig): Assertion `config.det_orders[i].size() == config.dem.count_detectors()' failed.
```1 parent 3299e14 commit 8c4d3c3
1 file changed
+6
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
235 | | - | |
| 234 | + | |
| 235 | + | |
236 | 236 | | |
237 | | - | |
238 | | - | |
| 237 | + | |
| 238 | + | |
239 | 239 | | |
| 240 | + | |
240 | 241 | | |
241 | 242 | | |
242 | 243 | | |
| |||
694 | 695 | | |
695 | 696 | | |
696 | 697 | | |
697 | | - | |
| 698 | + | |
0 commit comments