Closed christianurich closed 11 years ago
self.createParameter("FileName", STRING, "test") "test" is not a pointer? - can you convert it to one?
That is not the problem. parameter is a python function in pydynamind.i that calls addParamter
self.addParameter(name,DN_type,self._data[name],description)
A bug fix was that worked for me was to change the data type into an integer again.
I will redo the parameter stuff in near future anyway. It's still tricky and not typesafe.
Should I commit my changes in the meanwhile. I would really like to use python modules as well On 6 Aug 2013 18:08, "zacharias2k" notifications@github.com wrote:
I will redo the parameter stuff in near future anyway. It's still tricky and not typesafe.
— Reply to this email directly or view it on GitHubhttps://github.com/iut-ibk/DynaMind-ToolBox/issues/179#issuecomment-22163654 .
yes, but add a // FIX comment in the source, just to get sure it is documented.
I'll check this
potential bug fix see https://github.com/iut-ibk/DynaMind/pull/33
@christianurich Tested with ExportToShape -> wrong nameing of enum :-) Please pull, check and close.
awesome :-)
Traceback (most recent call last): File "/Users/christianurich/Documents/DynaMind-ToolBox/build/debug/output/pydynamind.py", line 5163, in createNode return self.klass().disown() File "/Users/christianurich/Documents/DynaMind-ToolBox/build/debug/output/PythonModules/scripts/Modules/ExportToShapeFile.py", line 78, in init self.createParameter("FileName", STRING, "test") File "/Users/christianurich/Documents/DynaMind-ToolBox/build/debug/output/pydynamind.py", line 5055, in createParameter self.addParameter(name,DN_type,self._data[name],description) File "/Users/christianurich/Documents/DynaMind-ToolBox/build/debug/output/pydynamind.py", line 5006, in addParameter return _pydynamind.Module_addParameter(self, args) NotImplementedError: Wrong number or type of arguments for overloaded function 'Module_addParameter'. Possible C/C++ prototypes are: Module::addParameter(std::string const &,DataTypes const,void ,std::string const) Module::addParameter(std::string const &,DataTypes const,void *)