if (theSizeMapStr.find(bad_end) == (theSizeMapStr.size()-bad_end.size()-1))
continue;
// Expr To Python function, verification is performed at validation in GUI
+ gstate = PyGILState_Ensure();
PyObject * obj = NULL;
obj= PyRun_String(theSizeMapStr.c_str(), Py_file_input, main_dict, NULL);
Py_DECREF(obj);
func = PyObject_GetAttrString(main_mod, "f");
VertexId2PythonSmp[*ip]=func;
VertexId2SizeMap.erase(vertexKey); // do not erase if using a vector
+ PyGILState_Release(gstate);
}
}
}