Skip to content

Commit

Permalink
Revert "Refs #9313 change for summing WISH data"
Browse files Browse the repository at this point in the history
This reverts commit a7fb91d.
  • Loading branch information
VickieLynch committed Apr 10, 2014
1 parent a7fb91d commit 831aad9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Code/Mantid/Framework/Algorithms/src/SmoothNeighbours.cpp
Expand Up @@ -435,7 +435,7 @@ void SmoothNeighbours::findNeighboursUbiqutious()
// Go through every input workspace pixel
outWI = 0;
int sum = getProperty("SumNumberOfNeighbours");
boost::shared_ptr<const Geometry::IComponent> parent, neighbParent;
boost::shared_ptr<const Geometry::IComponent> parent, neighbParent, grandparent, neighbGParent;
bool* used = new bool[inWS->getNumberHistograms()];
if (sum > 1)
{
Expand All @@ -459,6 +459,7 @@ void SmoothNeighbours::findNeighboursUbiqutious()
if(sum > 1)
{
parent = det->getParent();
grandparent = parent->getParent();
}
}
catch(Kernel::Exception::NotFoundError&)
Expand Down Expand Up @@ -501,7 +502,8 @@ void SmoothNeighbours::findNeighboursUbiqutious()
if(sum > 1)
{
neighbParent = inWS->getDetector(neighWI)->getParent();
if(noNeigh >= sum || neighbParent->getName().compare(parent->getName()) > 0 || used[neighWI])continue;
neighbGParent = neighbParent->getParent();
if(noNeigh >= sum || neighbParent->getName().compare(parent->getName()) > 0 || neighbGParent->getName().compare(grandparent->getName()) > 0 || used[neighWI])continue;
noNeigh++;
used[neighWI] = true;
}
Expand Down

0 comments on commit 831aad9

Please sign in to comment.