Skip to content

Commit

Permalink
refs #4075. Disable managed workspaces. See #4471
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed Jan 12, 2012
1 parent f112c6e commit 1d70848
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Code/Mantid/Framework/Algorithms/src/SmoothNeighbours.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ The algorithm will ignore masked detectors if this flag is set.
#include "MantidGeometry/Instrument/DetectorGroup.h"
#include "MantidKernel/EnabledWhenProperty.h"
#include <boost/algorithm/string.hpp>
#include <boost/regex.hpp>

using namespace Mantid::Kernel;
using namespace Mantid::Geometry;
Expand Down Expand Up @@ -533,6 +534,19 @@ void SmoothNeighbours::exec()
// Get the input workspace
inWS = getProperty("InputWorkspace");



/*
As a temporary measure, use with managed workspaces is disabled see #4471
*/
std::string typeName = typeid(*inWS.get()).name();
std::cout << "type name: " << typeName << std::endl;
boost::regex query("^(.*)managed(.*)$",boost::regex::icase);
if (boost::regex_match(typeName, query))
{
throw std::invalid_argument("SmoothNeighbours algorithm cannot be used with Managed Workspaces");
}

// Retrieve the optional properties
double enteredRadius = getProperty("Radius");

Expand Down

0 comments on commit 1d70848

Please sign in to comment.