Skip to content

Commit

Permalink
refs #6667 Failed attempt to build getParameterType test
Browse files Browse the repository at this point in the history
  • Loading branch information
abuts committed Jun 6, 2013
1 parent 7cc4636 commit be8737a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Code/Mantid/Framework/Geometry/test/ComponentTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,11 @@ class ComponentTest : public CxxTest::TestSuite
TS_ASSERT_EQUALS(ancs[0]->getName(), parent.getName());
TS_ASSERT(ancs[0]->isParametrized());

// std::string type=ancs[0]->getParameterType("Child");
// HACK: 06/06/2013
// something very dodgy occurs here as pq has no name e.g.
// std::string type= pq.getParameterType("Child"); is "" -- it does not find Child!
// And this throws as parent is not parameterized
// std::string type= parent.getParameterType("Child");
}

void testGetFullName()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void export_Component()
.def("getStringParameter", &Component::getStringParameter, Component_getStringParameter())
// HACK -- python should return parameters regardless of type. this is untill rows below this do not work
.def("getParameterType", &Component::getParameterType, Component_getParameterType())

// this does not work for some obvious or not obvious reasons
.def("getParameter", &Component::getNumberParameter, Component_getNumberParameter())
.def("getParameter", &Component::getBoolParameter, Component_getBoolParameter())
.def("getParameter", &Component::getStringParameter, Component_getStringParameter())
Expand Down

0 comments on commit be8737a

Please sign in to comment.