Skip to content

Commit

Permalink
Re #9866. Swap x and y axes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mantid-roman committed Sep 23, 2014
1 parent 08964fe commit 954042e
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -242,10 +242,10 @@ void ConvertMDHistoToMatrixWorkspace::make2DWorkspace()
auto &Y = outputWorkspace->dataY(i);
auto &E = outputWorkspace->dataE(i);

size_t xOffset = i * xStride;
size_t yOffset = i * yStride;
for(size_t j = 0; j < nx; ++j)
{
size_t linearIndex = xOffset + j * yStride;
size_t linearIndex = yOffset + j * xStride;
signal_t signal = inputWorkspace->getSignalArray()[linearIndex];
signal_t error = inputWorkspace->getErrorSquaredArray()[linearIndex];
// apply normalization
Expand Down

0 comments on commit 954042e

Please sign in to comment.