+ restore old behaviour of PropertyLinkSubList::getPyObject to fix failure in ccxInpWriter.py

This commit is contained in:
wmayer 2016-05-08 14:50:50 +02:00
parent 1ccab846e2
commit ec54c092d5

View File

@ -684,7 +684,16 @@ std::vector<PropertyLinkSubList::SubSet> PropertyLinkSubList::getSubListValues()
PyObject *PropertyLinkSubList::getPyObject(void) PyObject *PropertyLinkSubList::getPyObject(void)
{ {
#if 1 // FIXME: The current implementation returns a list of tuples with two items
// of the form: [(object, sub-element1), (object, sub-element2),...]
// If for an object several sub-elements are stored then it appears several
// times. However, to keep the output more compact the string for the
// sub-element should be replaced by a tuple to be of the form:
// [(object, (sub-element1, sub-element2)),...]
// When doing so the Python function 'get_femelement_sets' in the Python
// module cxxInpWriter.py gives an error because it passes a tuple instead
// of a string.
#if 0
std::vector<SubSet> subLists = getSubListValues(); std::vector<SubSet> subLists = getSubListValues();
std::size_t count = subLists.size(); std::size_t count = subLists.size();
#if 0//FIXME: Should switch to tuple #if 0//FIXME: Should switch to tuple