I'm struggling since two days to interface the following C struct with Python using SWIG. Ideally, I want to use it from Python as follows:
ms = my_struct()
ms.some_int = 5
ms.some_int_vector = [1,2,3,4,5] # or NumPy array equivalent
Look below for what I have so far (I first try to allocate just one int for some_int_vector for debugging purposes). In Python, some_int does what it's supposed to, however, for some_int_vector I get 'None'.
Any help is appreciated, as it seems something so basic, but yet I do not see what I do wrong. Also, probably this can be all done with SWIG built-ins, and I don't need custom %typemaps?