Skip to content
Snippets Groups Projects
Commit 2a3074cb authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

OffspecSim: direct call

parent 7251e6d7
No related branches found
No related tags found
1 merge request!2026simplify OffspecSim::packResult
...@@ -139,7 +139,7 @@ Datafield OffspecSimulation::packResult() ...@@ -139,7 +139,7 @@ Datafield OffspecSimulation::packResult()
size_t ny = m_detector->axis(1).size(); size_t ny = m_detector->axis(1).size();
// Apply detector resolution and transfer detector image // Apply detector resolution and transfer detector image
for (size_t j = 0; j < m_scan->coordinateAxis()->size(); ++j) { for (size_t j = 0; j < m_scan->nScan(); ++j) {
Datafield detector_image({m_detector->axis(0).clone(), m_detector->axis(1).clone()}); Datafield detector_image({m_detector->axis(0).clone(), m_detector->axis(1).clone()});
size_t N = detector_image.size(); size_t N = detector_image.size();
for (size_t i = 0; i < N; ++i) for (size_t i = 0; i < N; ++i)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment