diff --git a/Framework/PythonInterface/mantid/kernel/src/Registry/PropertyWithValueFactory.cpp b/Framework/PythonInterface/mantid/kernel/src/Registry/PropertyWithValueFactory.cpp index 8c3e6b1ff171..9b73d546c9c6 100644 --- a/Framework/PythonInterface/mantid/kernel/src/Registry/PropertyWithValueFactory.cpp +++ b/Framework/PythonInterface/mantid/kernel/src/Registry/PropertyWithValueFactory.cpp @@ -87,8 +87,8 @@ void initArrayLookup(PyArrayIndex &index) { using StringArrayHandler = SequenceTypeHandler>; index.emplace("StringArray", std::make_shared()); - using LongIntArrayHandler = SequenceTypeHandler>; - index.emplace("LongIntArray", std::make_shared()); + using IntArrayHandler = SequenceTypeHandler>; + index.emplace("IntArray", std::make_shared()); } /** @@ -220,7 +220,7 @@ const std::string PropertyWithValueFactory::isArray(PyObject *const object) { throw std::runtime_error("Unable to support extracting arrays of booleans."); } if (PyLong_Check(item)) { - return std::string("LongIntArray"); + return std::string("IntArray"); } GNU_DIAG_ON("parentheses-equality") if (PyFloat_Check(item)) { diff --git a/Framework/PythonInterface/test/cpp/PropertyWithValueFactoryTest.h b/Framework/PythonInterface/test/cpp/PropertyWithValueFactoryTest.h index bac36e1742b8..0a7af2552bf0 100644 --- a/Framework/PythonInterface/test/cpp/PropertyWithValueFactoryTest.h +++ b/Framework/PythonInterface/test/cpp/PropertyWithValueFactoryTest.h @@ -65,11 +65,11 @@ class PropertyWithValueFactoryTest : public CxxTest::TestSuite { } void test_builtin_type_create_long_array_from_list_type_property() { - testCreateArrayProperty(Py_BuildValue("[NN]", PyLong_FromLong(-10), PyLong_FromLong(4))); + testCreateArrayProperty(Py_BuildValue("[NN]", PyLong_FromLong(-10), PyLong_FromLong(4))); } void test_builtin_type_create_int_array_from_list_type_property() { - testCreateArrayProperty(Py_BuildValue("[ii]", -10, 4)); + testCreateArrayProperty(Py_BuildValue("[ii]", -10, 4)); } private: