From 931662fab9e126de344c73324f2225577c3be9e4 Mon Sep 17 00:00:00 2001 From: Alex Buts Date: Fri, 15 Aug 2014 18:27:48 +0100 Subject: [PATCH] refs #9962 This should resolve MergeMDFiles side of the problem as MergeMDFiles was not calculating average signal/error for boxes. Sliceviewer still have problem with the slider location --- Code/Mantid/Framework/MDAlgorithms/src/MergeMDFiles.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Code/Mantid/Framework/MDAlgorithms/src/MergeMDFiles.cpp b/Code/Mantid/Framework/MDAlgorithms/src/MergeMDFiles.cpp index ef5ec50e7f47..d1b32b82feae 100644 --- a/Code/Mantid/Framework/MDAlgorithms/src/MergeMDFiles.cpp +++ b/Code/Mantid/Framework/MDAlgorithms/src/MergeMDFiles.cpp @@ -251,11 +251,13 @@ namespace MDAlgorithms if(!box->isBox())continue; // load all contributed events into current box; this->loadEventsFromSubBoxes(boxes[ib]); - + // calculate box averages e.g. signal, error and number of events in the box + box->refreshCache(); if(DiskBuf) { if(box->getDataInMemorySize()>0) { // data position has been already pre-calculated + box->getISaveable()->save(); box->clearDataFromMemory(); //Kernel::ISaveable *Saver = box->getISaveable();