Refine incident wave vector before peak prediction
- Refinement uses real space residual, number of batches = number of frames.
- also fixed a segfault on MacOS that seems to only happen on my MacBook.
- This refinement can't be done right after peak finding because the peaks are not indexed. We may need to come up with a residual that doesn't involve the Miller index, only the detector coordinates.
Resolves #345 (closed)
Edited by Raza, Zamaan