Dear all,
Sorry for the cross post.
Abstract submission is open for the Third Symposium on Advances in
Modeling and Analysis Using Python at the AMS Annual Meeting in Austin,
TX, January 6-10, 2013. The call for papers and link to submit an
abstract is located here:
http://annual.ametsoc.org/2013/index.cfm/programs-and-events/conferences-an…
The abstract submission deadline is extended to August 28, 2012. We are
soliciting papers related to all areas of the use of Python in the
…
[View More]atmospheric and oceanic sciences. Please pass along this announcement
to your friends and colleagues! Thanks!
Regards,
Jonathan for the organizing committee
--
Jonathan Rocher, PhD
Scientific software developer
Enthought, Inc.
jrocher(a)enthought.com
1-512-536-1057
http://www.enthought.com
[View Less]
Hi,
I have wrapped a c++ code with SWIG.
Now that code used to read input from ASCII files. I'm trying to replace that part with an input coming from numpy.
I would rather not use setup.py if I have to (but if I can't avoid fine)
I'm looking at SWIG/numpy tutorials
looks like you need to do something like
%apply
2 questions:
1- How do use "apply" for class functions %apply (bla) myobject::foo ?
2-that's ok if your C++ deals with arrays but what if I actually want to receive the Numpy …
[View More]object so that I can manipulate it directly (or if for example the array isn't contiguous in memory)
An"dummy"example of foo function I'd like to wrap:
void FOO::fooNumpy(PyArrayObject *nparray) {
int j;
for(j=0;j<nparray->nd;j++) {
printf("Ok array dim %i has length: %i\n",j,nparray->dimensions[j]);
}
}
Thanks,
C.
[View Less]