[Numpy-discussion] installing matplotlib in MacOs 10.6.8.

2011-12-25 Thread Alex Ter-Sarkissov
hi everyone, I run python 2.7.2. in Eclipse (recently upgraded from 2.6). I have a problem with installing matplotlib (I found the version for python 2.7. MacOs 10.3, no later versions). If I run python in terminal using arch -i386 python, and then from matplotlib.pylab import * and similar

[Numpy-discussion] scipy installation problem

2011-12-14 Thread Alex Ter-Sarkissov
I'm using Eclipse (PyDev) on MacOS. I downloaded scipy010, installed it and added path to .mpkg file to PYTHONPATH and scipy to forced built-in. Nothing worked, I keep getting 'module scipy not found'. I then removed the link to the .mpkg and still nothing works. Strange enough, numpy works just

[Numpy-discussion] scipy installation problem

2011-12-14 Thread Alex Ter-Sarkissov
yes, that's exactly what i did. I'm using Python2.6 both in PyDev and Scipy. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] scipy installation problem

2011-12-14 Thread Alex Ter-Sarkissov
yeah, I've already removed it, still doesn't work. I'm running Python 2.6 and SciPy version I'm trying to install is scipy-0.10.0-py2.6-python.org-macosx10.3., pydev version is 2.2.4 I've had no trouble running numpy or Tkinter for example. Also none of the other modules I'm using have been

[Numpy-discussion] scipy installation problem

2011-12-14 Thread Alex Ter-Sarkissov
OK thanks guys, reinstalling the interpreter did the trick. I'm quite sure I did it before though, without any effect. More interestingly, I have two interpreters running, one for 2.6 and the other the auto. So the latter one still tells me the module isn't found, the former works just fine.

[Numpy-discussion] binary to ascii

2011-11-29 Thread Alex Ter-Sarkissov
hi eveyone, is there a simple command in numpy similar to matlab char(bin2dec('//some binary value//')) to convert binary to characters and back? thanks ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org

[Numpy-discussion] (no subject)

2011-10-03 Thread Alex Ter-Sarkissov
I got a problem running NumPy in Eclipse. I recently installed PyDev, but after downloading NumPy the installation attempt failed since python 2.6 was not found. I've installed Python 2.7. Do I need to replace it with Python 2.6? ___ NumPy-Discussion

[Numpy-discussion] import

2011-07-19 Thread Alex Ter-Sarkissov
this is probably silly question, I've seen in this in one of the tutorials: from tkinter import * import tkinter.messagebox given that * implies importing the whole module, why would anyone bother with importing a specific command on top of it? ___

[Numpy-discussion] k maximal elements

2011-06-06 Thread Alex Ter-Sarkissov
I have a vector of positive integers length n. Is there a simple (i.e. without sorting/ranking) of 'pulling out' k larrgest (or smallest) values. Something like *sum(x[sum(x,1)(max(sum(x,1)+min(sum(x,1/2,])* but smarter ___ NumPy-Discussion mailing

[Numpy-discussion] division operator

2011-04-04 Thread Alex Ter-Sarkissov
I have 2 variables, say var1=10,var2=100. To divide I do either divide(float(var1),float(var2)) or simply float(var1)/float(var2). I'm just wondering if there's a smarter way of doing this? ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org

[Numpy-discussion] random number genration

2011-03-31 Thread Alex Ter-Sarkissov
thanks Sturl, your second code works well although I had to divide the vector elements through 128 to get just the binaries ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] random number genration

2011-03-29 Thread Alex Ter-Sarkissov
If I want to generate a string of random bits with equal probability I run random.randint(0,2,size). What if I want a specific proportion of bits? In other words, each bit is 1 with probability p1/2 and 0 with probability q=1-p? thanks ___

[Numpy-discussion] (no subject)

2011-03-02 Thread Alex Ter-Sarkissov
hi, the question is probably very silly, but can't get my head around it Say I have an NxM numerical array. What I want is to obtain the row and column number of the smallest value(kinda like find command in Matlab). I use something like where(min(array_name)), but keep getting the error message.

[Numpy-discussion] float conversion

2011-01-16 Thread Alex Ter-Sarkissov
hi every1, I got the following issue: I wrote a function that converts binary strings into a decimal value (binary expansion). When I write type(x) to find out the type of the value I get NoneType. Therefore I can't convert it into anything else, such as float numbers, since command float(x)

[Numpy-discussion] http://mail.scipy.org/pipermail/numpy-discussion/2011-January/054512.html

2011-01-16 Thread Alex Ter-Sarkissov
hi thanks I've sorted ou the issue Alex ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] numpy installation in ubuntu

2010-10-19 Thread Alex Ter-Sarkissov
thanks, this didn't seem to work. I get a whole range of errors, most importantly SystemError: Cannot compiler 'Python.h'. Perhaps you need to install python-dev|python-devel. Apparently, according to numpy installation guide

Re: [Numpy-discussion] numpy installation in ubuntu

2010-10-19 Thread Alex Ter-Sarkissov
thanks! it actually worked! maybe u could recommend some good sources/readin on how to install different modules in python run under linux thanks again, alex 2010/10/19 Pauli Virtanen p...@iki.fi Tue, 19 Oct 2010 21:26:38 +1300, Alex Ter-Sarkissov wrote: thanks, this didn't seem to work. I

[Numpy-discussion] numpy installation in ubuntu

2010-10-18 Thread Alex Ter-Sarkissov
hi everyone, i'm very new to ubuntu, now trying to install numpy and wxpython. Having unpacked numpy and running the standard commnad in idle from numpy import * i get the message ImportError: Error importing numpy: you should not try to import numpy from its source directory; please

[Numpy-discussion] array manipulation

2010-08-16 Thread Alex Ter-Sarkissov
hi, this is probably a very silly question, but I can't get my hear around it unfortunately( I have an array (say, mat=rand(3,5)) from which I 'pull out' a row (say, s1=mat[1,]). The problem is, the shape of this row s1 is not [1,5], as I would expect, but rather [5,], which means that I can't,