Re: [Numpy-discussion] Segmentation fault during tests with Python 2.7.2 on Debian 6?

2012-04-12 Thread Charles R Harris
On Thu, Apr 12, 2012 at 8:13 PM, Charles R Harris wrote: > > > On Thu, Apr 12, 2012 at 7:41 PM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> >> >> On Thu, Apr 12, 2012 at 2:05 AM, Chris Ball wrote: >> >>> Hi, >>> >>> I'm trying out various continuous integration options, so I happ

Re: [Numpy-discussion] Segmentation fault during tests with Python 2.7.2 on Debian 6?

2012-04-12 Thread Charles R Harris
On Thu, Apr 12, 2012 at 7:41 PM, Charles R Harris wrote: > > > On Thu, Apr 12, 2012 at 2:05 AM, Chris Ball wrote: > >> Hi, >> >> I'm trying out various continuous integration options, so I happen to be >> testing NumPy on several platforms that I don't normally use. >> >> Recently, I've been get

Re: [Numpy-discussion] Segmentation fault during tests with Python 2.7.2 on Debian 6?

2012-04-12 Thread Charles R Harris
On Thu, Apr 12, 2012 at 2:05 AM, Chris Ball wrote: > Hi, > > I'm trying out various continuous integration options, so I happen to be > testing NumPy on several platforms that I don't normally use. > > Recently, I've been getting a segmentation fault on Debian 6 (with Python > 2.7.2): > > Linux d

Re: [Numpy-discussion] NumPy-Discussion Digest, Vol 67, Issue 43

2012-04-12 Thread Peter Plantinga
t lapack_lite > ImportError: libaf90math.so: cannot open shared object file: No such file > or directory > > It looks like f2py cannot find libaf90math.so, located in > /opt/absoft10.1/shlib. How can I tell f2py where af90math is? > > Thanks for the help! > Peter Plantinga &

Re: [Numpy-discussion] Getting C-function pointers from Python to C

2012-04-12 Thread Dag Sverre Seljebotn
On 04/12/2012 11:55 PM, Travis Oliphant wrote: > > On Apr 12, 2012, at 4:51 PM, Dag Sverre Seljebotn wrote: > >> On 04/12/2012 11:13 PM, Travis Oliphant wrote: >>> Dag, >>> >>> Thanks for the link to your CEP. This is the first time I've seen it. >>> You probably referenced it before, but I had

Re: [Numpy-discussion] Getting C-function pointers from Python to C

2012-04-12 Thread Travis Oliphant
On Apr 12, 2012, at 4:51 PM, Dag Sverre Seljebotn wrote: > On 04/12/2012 11:13 PM, Travis Oliphant wrote: >> Dag, >> >> Thanks for the link to your CEP. This is the first time I've seen it. You >> probably referenced it before, but I hadn't seen it. >> >> That CEP seems along the lines of w

Re: [Numpy-discussion] Getting C-function pointers from Python to C

2012-04-12 Thread Dag Sverre Seljebotn
On 04/12/2012 11:13 PM, Travis Oliphant wrote: > Dag, > > Thanks for the link to your CEP. This is the first time I've seen it. You > probably referenced it before, but I hadn't seen it. > > That CEP seems along the lines of what I was thinking of.We can make > scipy follow that CEP and Nu

Re: [Numpy-discussion] YouTrack testbed

2012-04-12 Thread Maggie Mari
On 4/12/12 11:43 AM, Ralf Gommers wrote: Thanks, that's a clear description of pros and cons. It's also easy to play with Redmine at demo.redmine.org . That site allows you to set up a new project and try the admin interface. My current list of preferences is: 1. R

Re: [Numpy-discussion] Getting C-function pointers from Python to C

2012-04-12 Thread Travis Oliphant
Dag, Thanks for the link to your CEP. This is the first time I've seen it. You probably referenced it before, but I hadn't seen it. That CEP seems along the lines of what I was thinking of.We can make scipy follow that CEP and NumPy as well in places that it needs function pointers.

Re: [Numpy-discussion] YouTrack testbed

2012-04-12 Thread David Cournapeau
On Thu, Apr 12, 2012 at 9:29 PM, william ratcliff < william.ratcl...@gmail.com> wrote: > Has anyone tried Rietveld, Gerrit, or Phabricator? rietveld and gerrit are code review tools. I have not heard of phabricator, but this article certainly makes it sounds interesting: http://www.readwriteweb.

Re: [Numpy-discussion] YouTrack testbed

2012-04-12 Thread william ratcliff
Has anyone tried Rietveld, Gerrit, or Phabricator? On Thu, Apr 12, 2012 at 4:05 PM, Travis Oliphant wrote: > This looks good. Maggie and Bryan are now setting up a Redmine instance > to try out how hard that is to administer.I have some experience with > Redmine and have liked what I've s

Re: [Numpy-discussion] YouTrack testbed

2012-04-12 Thread Travis Oliphant
This looks good. Maggie and Bryan are now setting up a Redmine instance to try out how hard that is to administer.I have some experience with Redmine and have liked what I've seen in the past. I think the user experience that Ralf is providing feedback on is much more important than how h

Re: [Numpy-discussion] physics simulation

2012-04-12 Thread Tim Cera
> > It looks like f2py cannot find libaf90math.so, located in > /opt/absoft10.1/shlib. How can I tell f2py where af90math is? Really you have to have this setup in order to run a fortran executable, but the only thing that comes to mind is the LD_LIBRARY_PATH environment variable. LD_LIBRARY_PAT

[Numpy-discussion] physics simulation

2012-04-12 Thread Peter Plantinga
I'm trying to run a physics simulation on a cluster. The original program is written in fortran, and highly parallelizable. Unfortunately, I've had a bit of trouble getting f2py to work with the compiler I'm using (absoft v.10.1). The cluster is running Linux v. 12. When I type just "f2py" I get t

Re: [Numpy-discussion] YouTrack testbed

2012-04-12 Thread David Cournapeau
On Thu, Apr 12, 2012 at 5:43 PM, Ralf Gommers wrote: > > > On Tue, Apr 10, 2012 at 9:53 PM, David Cournapeau wrote: > >> >> >> On Tue, Apr 10, 2012 at 8:40 PM, Ralf Gommers < >> ralf.gomm...@googlemail.com> wrote: >> >>> >>> >>> On Mon, Apr 9, 2012 at 10:32 PM, Bryan Van de Ven >>> wrote: >>> >>>

Re: [Numpy-discussion] Getting C-function pointers from Python to C

2012-04-12 Thread Dag Sverre Seljebotn
On 04/12/2012 07:24 PM, Nathaniel Smith wrote: > On Wed, Apr 11, 2012 at 10:23 PM, Travis Oliphant > wrote: In the mean-time, I think we could do as Robert essentially suggested and just use Capsule Objects around an agreed-upon simple C-structure: int id /* Some nu

Re: [Numpy-discussion] YouTrack testbed

2012-04-12 Thread Hans-Martin v. Gaudecker
On 12.04.2012, at 18:38, numpy-discussion-requ...@scipy.org wrote: >>> Redmine does look good from a quick browse (better view, does display >>> diffs). It would be good to get the opinions of a few more people on this >>> topic. >>> >> >> Redmine is "trac on RoR", but it solves two significant

Re: [Numpy-discussion] creating/working NumPy-ndarrays in C++

2012-04-12 Thread Holger Herrlich
> If you want to use C++, it's because you want to use C++ tools anyway, > right? Some tools like autodia for class diagrams etc. Main reason to use C++ is complexity. Then "..., you get to keep the pieces." becomes too likely. I see, world's upside down, my GUI runs wxPython. ;) Thanks to all

Re: [Numpy-discussion] Getting C-function pointers from Python to C

2012-04-12 Thread Nathaniel Smith
On Wed, Apr 11, 2012 at 10:23 PM, Travis Oliphant wrote: >>> In the mean-time, I think we could do as Robert essentially suggested and >>> just use Capsule Objects around an agreed-upon simple C-structure: >>> >>>      int   id   /* Some number that can be used as a "type-check" */ >>>      void

Re: [Numpy-discussion] YouTrack testbed

2012-04-12 Thread Ralf Gommers
On Tue, Apr 10, 2012 at 9:53 PM, David Cournapeau wrote: > > > On Tue, Apr 10, 2012 at 8:40 PM, Ralf Gommers > wrote: > >> >> >> On Mon, Apr 9, 2012 at 10:32 PM, Bryan Van de Ven wrote: >> >>> On 4/3/12 4:18 PM, Ralf Gommers wrote: >>> > Here some first impressions. >>> > >>> > The good: >>> > -

Re: [Numpy-discussion] Getting C-function pointers from Python to C

2012-04-12 Thread Nadav Horesh
>> Example: >> lib = ctypes.CDLL('libm.dylib') >> address_as_integer = ctypes.cast(lib.sin, ctypes.c_void_p).value Excellent! Sorry for the hijack, thanks for rhe ride, Nadav. ___ NumPy-Discussion mailing list Nu

Re: [Numpy-discussion] YouTrack testbed

2012-04-12 Thread Ralf Gommers
On Thu, Apr 12, 2012 at 5:59 PM, Andreas H. wrote: > Have you guys actually thought about JIRA? Atlassian offers free licences > for open source projects ... > Yes, http://article.gmane.org/gmane.comp.python.numeric.general/48224/match=jira Ralf ___ N

Re: [Numpy-discussion] YouTrack testbed

2012-04-12 Thread Ralf Gommers
On Thu, Apr 12, 2012 at 5:37 PM, Bryan Van de Ven wrote: > On 4/10/12 2:40 PM, Ralf Gommers wrote: > > > > On Mon, Apr 9, 2012 at 10:32 PM, Bryan Van de Ven wrote: > >> On 4/3/12 4:18 PM, Ralf Gommers wrote: >> > Here some first impressions. >> > >> > The good: >> > - It's responsive! >> > - It

Re: [Numpy-discussion] change masked array member values with conditional selection

2012-04-12 Thread Chao YUE
Thanks Pierre. It's a good idea to always use a[(a<5).filled(False)] = 2 I don't understand very well the underlying structure but it's good to know some. Chao 2012/4/12 Pierre GM > Ciao Chao, > > That known quirk deserves to be better documented, I agree. > > There's a simple explanation for

Re: [Numpy-discussion] YouTrack testbed

2012-04-12 Thread Andreas H.
Have you guys actually thought about JIRA? Atlassian offers free licences for open source projects ... Cheers, Andreas. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] YouTrack testbed

2012-04-12 Thread Bryan Van de Ven
On 4/10/12 2:40 PM, Ralf Gommers wrote: On Mon, Apr 9, 2012 at 10:32 PM, Bryan Van de Ven > wrote: On 4/3/12 4:18 PM, Ralf Gommers wrote: > Here some first impressions. > > The good: > - It's responsive! > - It remembers my preferences (view

Re: [Numpy-discussion] change masked array member values with conditional selection

2012-04-12 Thread Pierre GM
Ciao Chao, That known quirk deserves to be better documented, I agree. There's a simple explanation for this behavior: Because `a` is a masked array, `(a < 5)` is also a masked array with dtype=np.bool, and whose mask is the same as `a`'s. In your example, that's: masked_array(data = [-- -- -- Tr

Re: [Numpy-discussion] Segmentation fault during tests with Python 2.7.2 on Debian 6?

2012-04-12 Thread Charles R Harris
On Thu, Apr 12, 2012 at 2:05 AM, Chris Ball wrote: > Hi, > > I'm trying out various continuous integration options, so I happen to be > testing NumPy on several platforms that I don't normally use. > > Recently, I've been getting a segmentation fault on Debian 6 (with Python > 2.7.2): > > Linux d

Re: [Numpy-discussion] mask array and add to list

2012-04-12 Thread Tim Cera
Use 'ma.max' instead of 'np.max'. This might be a bug OR an undocumented feature. :-) import numpy.ma as ma marr = ma.array(range(10), mask=[0,0,0,0,0,1,1,1,1,1]) np.max(marr) 4 # mask is used a = [] a.append(marr) a.append(marr) np.max(a)

[Numpy-discussion] change masked array member values with conditional selection

2012-04-12 Thread Chao YUE
Dear all numpy users, I am using numpy 1.6.1 I find that if you want to change some member values in a masked array according to some conditional selection. suppose a is a masked array, you want to change all value below zero to zero. you must always use a[np.nonzero(a<0)]=0 rather than a[a<0]=

Re: [Numpy-discussion] partial computations

2012-04-12 Thread Benjamin Root
On Wed, Apr 11, 2012 at 11:38 PM, santhu kumar wrote: > Hello all, > > I am trying to optimise a code and want your suggestions. > A : - NX3 matrix (coordinates of N points) > > After performing pairwise distance computations(called pdist) between > these points, depending upon a condition that t

Re: [Numpy-discussion] creating/working NumPy-ndarrays in C++

2012-04-12 Thread Dag Sverre Seljebotn
On 04/12/2012 01:02 PM, Holger Herrlich wrote: > > On 04/09/2012 09:19 PM, Dag Sverre Seljebotn wrote: >> On 04/08/2012 08:25 PM, Holger Herrlich wrote: >>> >>> That all sounds like no option -- sad. Cython is no solution cause, >>> all I want is to leave Python Syntax in favor for strong OOP desig

Re: [Numpy-discussion] creating/working NumPy-ndarrays in C++

2012-04-12 Thread Holger Herrlich
On 04/09/2012 09:19 PM, Dag Sverre Seljebotn wrote: > On 04/08/2012 08:25 PM, Holger Herrlich wrote: >> >> That all sounds like no option -- sad. Cython is no solution cause, >> all I want is to leave Python Syntax in favor for strong OOP design >> patterns. > > I'm sorry, I'm trying and trying

[Numpy-discussion] Segmentation fault during tests with Python 2.7.2 on Debian 6?

2012-04-12 Thread Chris Ball
Hi, I'm trying out various continuous integration options, so I happen to be testing NumPy on several platforms that I don't normally use. Recently, I've been getting a segmentation fault on Debian 6 (with Python 2.7.2): Linux debian6-amd64 2.6.32-5-amd64 #1 SMP Thu Mar 22 17:26:33 UTC 2012 x