I too have to agree with Andreas. I have been using Numpy for years in my
work, but am not versed in C so I don't even understand what numpy is doing
under the hood. I too would only be able to contribute to the code at the
python level, or as Andreas said, at improving SciPy packages and other
If you are storing objects, then can't you store them in a list and just do:
for obj in objectlist:
obj.attribute = value
Or am I misunderstanding?
On Thu, Apr 5, 2012 at 11:31 AM, Neal Becker ndbeck...@gmail.com wrote:
I have an array of object.
How can I apply attribute access to
Abhi,
One thing I would suggest is to tackle numpy with a particular focus. Once
you've gotten the basics down through tutorials and videos, do you have a
research project in mind to use with numpy?
On Mon, Mar 12, 2012 at 6:08 PM, Skipper Seabold jsseab...@gmail.comwrote:
On Mon, Mar 12,
afford to have several data structures that are
holding it simultanesouly in your code.
On Mon, Mar 12, 2012 at 6:23 PM, Abhishek Pratap apra...@lbl.gov wrote:
Super awesome. I love how the python community in general keeps the
recordings available for free.
@Adam : I do have some problems
all part of a learning curve. I'll keep in mind that the
period may cause problems later; however, as far as I can tell so far,
there's nothing going wrong when I access the data.
On Mon, Feb 20, 2012 at 1:35 PM, Brett Olsen brett.ol...@gmail.com wrote:
On Sat, Feb 18, 2012 at 8:12 PM, Adam
Thanks for clearing that up.
On Mon, Feb 20, 2012 at 1:58 PM, Skipper Seabold jsseab...@gmail.comwrote:
On Mon, Feb 20, 2012 at 1:35 PM, Brett Olsen brett.ol...@gmail.com
wrote:
On Sat, Feb 18, 2012 at 8:12 PM, Adam Hughes hugad...@gwmail.gwu.edu
wrote:
Hey everyone,
I have timeseries
On Feb 19, 2012, at 2:18 AM, Mark Wiebe mwwi...@gmail.com wrote:
The suggestion of transitioning the NumPy core code from C to C++ has
sparked a vigorous debate, and I thought I'd start a new thread to give my
perspective on some of the issues raised, and describe how such a
transition could
On Feb 19, 2012, at 10:38 AM, Sturla Molden stu...@molden.no wrote:
Den 19.02.2012 10:52, skrev Mark Wiebe:
C++ removes some of this advantage -- now there is extra code generated by
the compiler to handle constructors, destructors, operators etc which can
make a material difference to fast
Hey everyone,
I have timeseries data in which the column label is simply a filename from
which the original data was taken. Here's some sample data:
name1.txt name2.txt name3.txt
32 34953
32 03402
I've noticed that the standard genfromtxt()
Hello,
I get a segfault here:
In [1]: x = np.array([1,2,3], dtype='M')
In [2]: x.searchsorted(2, side='left')
But it's fine here:
In [1]: x = np.array([1,2,3], dtype='M')
In [2]: x.view('i8').searchsorted(2, side='left')
Out[2]: 1
This segfaults again:
build, in setup.py.
Has anyone had this sort of incompatibility on OSX? Suggestions as to
correct way to deal with it?
Thanks,
Adam
On Mon, Dec 19, 2011 at 1:37 PM, mark florisson
markflorisso...@gmail.comwrote:
On 19 December 2011 00:04, Adam Klein a...@lambdafoundry.com wrote:
Hi all
right with
something. I have placed ** before the lines that appear in red.
I appreciate the suggestions,
Thanks again,
Adam.
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler
options
running config_fc
unifing config_fc, config
Hi,
Definitely have the sdk installed. In the Developer/SDKs directory I have one
for 10.6 and another for 10.7 - no idea where a second 10.6 would be coming
from =(
Adam.
-Original Message-
From: numpy-discussion-requ...@scipy.org
[mailto:numpy-discussion-requ...@scipy.org]
Sent
from Python.org so I have no idea whether
Python.h is present or where indeed I would find it or how I would add it to
the search path.
Do I have to install from source or something like that?
Thanks again,
Adam.
-Original Message-
From: McNicol, Adam
Sent: Fri 12/16/2011 11:07 PM
you need to \
SystemError: Cannot compile 'Python.h'. Perhaps you need to install
python-dev|python-devel.
I have got no idea what to do with this error message. Any help would be much
appreciated.
Kind Regards,
Adam.
___
NumPy-Discussion mailing list
I'm keeping a large number of data points in multiple 2d arrays, for
example:
class c(object):
def __init__(self):
self.a = np.zeros((24, 60))
self.b = np.zeros((24, 60))
...
After processing the data, I'm serializing these to disk for future
Ahhh I see this is due to the ABI change, sorry for the noise.
Cheers
Adam
On Mon, Feb 15, 2010 at 21:00, Adam Mercer ramer...@gmail.com wrote:
Hi
According to the NumPy download page
http://sourceforge.net/projects/numpy/files/ the latest available
version is 1.3.0, what happened to 1.4.0
Hi again, I apologize, the mistake was entirely my own. Sqrt's do the
right thing
Adam
On Sat, Oct 17, 2009 at 12:17 PM, Adam Ginsburg
adam.ginsb...@colorado.edu wrote:
My code is actually wrong but I still have the problem I've
identified that sqrt is leading to precision errors
/src/tinker/source/ese.so:
unknown file type, first eight bytes: 0x80 0xC0 0x4F 0x00 0xEB 0x57
0xE0 0x8F
when I attempt to import the generated module. Any ideas on how to fix this?
AFAIK g95 is not supported by numpy distutils on Mac OS X.
Cheers
Adam
Sun or Forte Fortran 95 Compiler
--fcompiler=vast Pacific-Sierra Research Fortran 90 Compiler
For compiler details, run 'config_fc --verbose' setup command.
$
Cheers
Adam
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http
On Wed, Jun 10, 2009 at 15:19, Samir Unnisru...@gmail.com wrote:
That's odd. You're running Mac OS 10.5.7? Did you install NumPy
manually or via Fink?
Yep Intel 10.5.7, installed from MacPorts.
Cheers
Adam
___
Numpy-discussion mailing list
Numpy
)
nose.result.TextTestResult run=3486 errors=0 failures=0
Cheers
Adam
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
I was expecting to get more than one index for both calls. Am I doing
something wrong or misreading the documentation?
- Adam J. Oliner
oli...@cs.stanford.edu
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://mail.scipy.org
10.4 I believe, RHEL for sure, open solaris).
Mac OS X 10.4 uses python-2.3, 10.5 uses python-2.5.
Cheers
Adam
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
.
I think I answered my own question: if I'd used zeros() instead of
ones() it would have worked fine. I don't know why I tried to use
ones().
Adam
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo
]: bi = (f.bolo_indices[np.newaxis,:]+ones([7751,1])).astype('int')
In [86]: whc = (whscan[:,np.newaxis] + ones([1,107])).astype('int')
In [87]: array2d[whc,bi] = temp2d
I thought this had worked, but the values didn't seem to be going to the
right places when I re-examined them.
Thanks,
Adam
Please add numpy 1.2.0 win32 package for python 2.6
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
numpy 1.2 is not buildable with python 2.6. You will have to wait
for a later version, most probably 1.3,
Ok thanks David, guess I will have to wait till I can leverage the new
IEEE 754 support in python 2.6
___
Numpy-discussion mailing list
Hi
If I specify a fortran compiler when building numpy, does that have
any effect on what is installed? In other words, must I build numpy
against a fortran compiler in order to successfully build and use
extension written in fortran - such as scipy?
Cheers
Adam
to specify anything.
Thanks for the clarification.
Cheers
Adam
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
, however the scipy home page, i.e.
http://www.scipy.org, now appears to be the planet aggregator is this
just a temporary DNS issue?
Cheers
Adam
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy
if there was a
better way to do it.
Cheers
Adam
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
: 0.0469707035741
Hope this helps,
That is helpful, I thought that using arrays would be much faster but
its clearly not in this case.
Thanks
Adam
___
Numpy-discussion mailing list
the need for the list, as the array object doesn't
seem to have an append() method?
Cheers
Adam
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
...,
5.45168074e-067 2.11101912e-052 6.58519056e-260]
where using
values = array(wavearray.split()).astype(float)
print values
results in the correct
[ 0.e+00 0.e+00 0.e+00 ...,
4.22233200e-23 3.86799900e-23 3.48452000e-23]
Cheers
Adam
On 08/10/2007, Robert Kern [EMAIL PROTECTED] wrote:
Use sep=' '. As the docstring says, if sep is empty, then the string is
interpreted as binary data. If it is not empty, then the string is interpreted
as ASCII.
Thanks, got it the wrong way round. That works now.
Cheers
Adam
an array element with a sequence.
Cheers
Adam
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
On 07/10/2007, Gary Ruben [EMAIL PROTECTED] wrote:
Try using astype. This works:
values = array(wavearray.split()).astype(float)
Thanks Gary, that does the trick.
Cheers
Adam
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http
process. For various reasons, for my application it's preferable that I
handle binary operators with mixed numpy/myarray operand types myself,
rather than converting the myarray object to a numpy.ndarray.
Thanks in advance for any suggestions you can give.
Adam
. Is this intentional that the comparison operators
ignore __array_priority__, or just a bug in ndarray? Thanks again.
Adam
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
Travis Oliphant oliphant.travis at ieee.org writes:
Adam Jenkins wrote:
I just tried it, and it does solve the problem for the
mathematical operators like + and -, but doesn't seem to work for
the comparison operators. That is, if I write
lhs rhs
where lhs is a numpy.ndarray
41 matches
Mail list logo