Skip to content

Commit

Permalink
refs #9502 minor comments
Browse files Browse the repository at this point in the history
  • Loading branch information
abuts committed Jun 4, 2014
1 parent 32ad087 commit 9135d1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/MDAlgorithms/src/ConvertToMD.cpp
Expand Up @@ -269,6 +269,7 @@ namespace Mantid

// retrieve representative bin boundaries
MantidVec binBoundaries = m_InWS2D->readX(spectra_index);
// check if the boundaries transformation is necessary
if (m_Convertor->getUnitConversionHelper().isUnitConverted())
{

Expand All @@ -287,13 +288,12 @@ namespace Mantid
binBoundaries[i] =unitConv.convertUnits(binBoundaries[i]);
}
}
//
// sort bin boundaries in case if unit transformation have swapped them.
if (binBoundaries[0]>binBoundaries[binBoundaries.size()-1])
{
g_log.information()<<"Bin boundaries are not arranged monotonously. Sorting performed\n";
std::sort(binBoundaries.begin(),binBoundaries.end());
}

}

// Replacement for SpectraDetectorMap::createIDGroupsMap using the ISpectrum objects instead
Expand Down

0 comments on commit 9135d1c

Please sign in to comment.