uble[2] = 6.7, 0x563725fc0df0
Le mar. 11 févr. 2020 à 20:12, stefan a écrit :
>
> On 2020-02-11 2:05 p.m., HOUSSEN Franck wrote:
>
> OK, I understand this is a type related problem. I found a workaround
> (dummyTest3.py - init numpy arrays with list seems to work).
>
> But, I u
11, 2020, at 13:24, HOUSSEN Franck wrote:
> >
> > Finally able to reproduce the "real" problem with a "dummy" example :
> seems that, at python side, when you use "np.append" C++ get screwed data
> ?!... (note that with or without "np.append" all
559e0710e570
ptrFloat[1] = 1.9, 0x559e0710e574
ptrFloat[2] = 2.72008e+23, 0x559e0710e578
Le dim. 9 févr. 2020 à 10:58, HOUSSEN Franck a écrit :
> Oh men ! Totally missed / forget that... Thanks Sefan : the dummy simple
> example works now :D
> Unfortunately, this dummy example was extracted
help on the dummy case ! Hope this could help some
other people
Franck
Le dim. 9 févr. 2020 à 05:04, Stefan Seefeld a écrit :
>
> On 2020-02-08 12:07 p.m., HOUSSEN Franck wrote:
>
> I tried to play with extract::check() without much success : line 13
> crashes !?...
> Thi
I tried to play with extract::check() without much success : line 13
crashes !?...
This is a very simple exemple : would like to get it to work. Could
somebody help ? Still googling / searching for a solution
Le ven. 7 févr. 2020 à 22:43, stefan a écrit :
>
> On 2020-02-07 4:06 p.m., H
With boost python, how to pass a tuple of lists from python to C++ ? Code
attached : line 12 crashes ?! Googling but no fix for now.
Expected results should look like this:
>> make; python dummyTest.py
g++ -I/usr/include/python2.7 -o dummy.so -shared -fPIC dummy.cpp
-lboost_python -lboost_numpy
do
This helps ! Got it to work ! Thanks guys. Code attached for people who
could need it.
Franck
Le jeu. 30 janv. 2020 à 15:46, stefan a écrit :
>
> On 2020-01-29 4:01 p.m., HOUSSEN Franck wrote:
>
> With boost python tuple, how to loop over tuple items? In dummy.cpp
> attached,
With boost python tuple, how to loop over tuple items? In dummy.cpp
attached, I'd like to get line 8 to work. Afterwards, I noticed line 7 does
not even compile. How to get the length of a tuple (line 8), and, why there
could be some ambiguity (line 7). Any help / clue is appreciated.
Franck
Make