Skip to content

Commit

Permalink
+ restore old behaviour of PropertyLinkSubList::getPyObject to fix fa…
Browse files Browse the repository at this point in the history
…ilure in ccxInpWriter.py
  • Loading branch information
wwmayer committed May 8, 2016
1 parent 1ccab84 commit ec54c09
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/App/PropertyLinks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,16 @@ std::vector<PropertyLinkSubList::SubSet> PropertyLinkSubList::getSubListValues()

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::size_t count = subLists.size();
#if 0//FIXME: Should switch to tuple
Expand Down

0 comments on commit ec54c09

Please sign in to comment.