On 14/02/2012 10:30, Pauli Virtanen wrote:
> 14.02.2012 10:20, Mads Ipsen kirjoitti:
> [clip]
>> * Should import_array() only be called one time, namely when the main
>> application is started?
> It should be called once when the application is started, before you do
> any other Numpy-using operations.
>
> http://docs.scipy.org/doc/numpy/reference/c-api.array.html#import_array
>
This is what we have in our swig.i file:
%init
%{
import_array();
%}
so I guess we are doing it the right way.
But I still get the warning, when the code is compiled.
Mads
--
+-----------------------------------------------------+
| Mads Ipsen |
+----------------------+------------------------------+
| Gåsebæksvej 7, 4. tv | |
| DK-2500 Valby | phone: +45-29716388 |
| Denmark | email: [email protected] |
+----------------------+------------------------------+
_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion