[Numpy-discussion] docs.scipy.org down

2017-03-13 Thread Ryan May
Is https://docs.scipy.org/ being down known issue? Ryan -- Ryan May ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Arrays and format()

2017-02-28 Thread Ryan May
y/issues/5543 >> >> There was also a very thorough discussion of this recently on this >> mailing list: >> >> http://numpy-discussion.10968.n7.nabble.com/Proposal-to-supp >> ort-format-td43931.html >> >> On Tue, Feb 28, 2017 at 11:32 AM Ryan May wrot

[Numpy-discussion] Arrays and format()

2017-02-28 Thread Ryan May
mat__ I've now hit this in my code. If someone can even point me in the general direction of the code to dig into for this (please let it be python, please let it be python...), I'll dig in more. Ryan -- Ryan May ___ NumPy-Discussion maili

Re: [Numpy-discussion] array comprehension

2016-11-04 Thread Ryan May
ment, so it can work similarly to np.stack. > itertools.product, itertools.permutation, etc. with np.fromiter (and reshape) is probably also useful here, though it doesn't solve the non-scalar problem. Ryan -- Ryan May ___ NumPy-Discussi

Re: [Numpy-discussion] How to use user input as equation directly

2016-10-27 Thread Ryan May
eval function: https://docs.python.org/3/library/functions.html#eval ? Ryan -- Ryan May ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Integers to negative integer powers, time for a decision.

2016-10-10 Thread Ryan May
On Sun, Oct 9, 2016 at 12:59 PM, Stephan Hoyer wrote: > On Sun, Oct 9, 2016 at 6:25 AM, Sebastian Berg > wrote: > >> For what its worth, I still feel it is probably the only real option to >> go with error, changing to float may have weird effects. Which does not >> mean it is impossible, I admi

Re: [Numpy-discussion] Custom Dtype/Units discussion

2016-07-14 Thread Ryan May
Sounds good. On Thu, Jul 14, 2016 at 10:51 AM, Nathan Goldbaum wrote: > Fine with me as well. Meet in the downstairs lobby after the lightning > talks? > > On Thu, Jul 14, 2016 at 10:49 AM, Ryan May wrote: > >> Fine with me. >> >> Ryan >> >> On T

Re: [Numpy-discussion] Custom Dtype/Units discussion

2016-07-14 Thread Ryan May
Fine with me. Ryan On Thu, Jul 14, 2016 at 12:48 AM, Nathaniel Smith wrote: > I have something at lunch, so dinner would be good for me too. > On Jul 13, 2016 7:46 PM, "Charles R Harris" > wrote: > >> Evening would work for me. Dinner? >> On Jul 13, 2016 2:4

Re: [Numpy-discussion] Custom Dtype/Units discussion

2016-07-13 Thread Ryan May
ystem generally, rather than specifically about unit support. (though unit > support is a great use-case to focus on) > > So Thursday's options seem to be in the standard BOF slot (up against the Numfocus BOF), or doing something that evening, which would overlap at least part of multipl

Re: [Numpy-discussion] Custom Dtype/Units discussion

2016-07-11 Thread Ryan May
ral solution is a good goal--just that units is my "sine qua non". Also, I would have love to have heard that someone solved the unit + ndarray-like thing problem. :) Ryan -- Ryan May ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.o

Re: [Numpy-discussion] Custom Dtype/Units discussion

2016-07-10 Thread Ryan May
on? > > Nathan > > > On Sunday, July 10, 2016, Ryan May wrote: > >> Hi Nathaniel, >> >> Thursday works for me; anyone else interested is welcome to join. >> >> Ryan >> >> On Sun, Jul 10, 2016 at 12:20 AM, Nathaniel Smith wrote: >>

Re: [Numpy-discussion] Custom Dtype/Units discussion

2016-07-10 Thread Ryan May
n the Python Compilers Workshop > and my talk, but do you want to meet up Thursday maybe? > > -n > > On Sat, Jul 9, 2016 at 6:44 PM, Ryan May wrote: > > Greetings! > > > > I've been beating my head against a wall trying to work seamlessly with > > pint's

[Numpy-discussion] Custom Dtype/Units discussion

2016-07-09 Thread Ryan May
one way or another before I can move forward in my corner of the world, and I have time I can dedicate to implementing a solution. Ryan -- Ryan May ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Scipy 2016 attending

2016-05-18 Thread Ryan May
WA 98115 (206) 526-6317 main reception > chris.bar...@noaa.gov > > ___ > NumPy-Discussion mailing > listNumPy-Discussion@scipy.orghttps://mail.scipy.org/mailman/listinfo/numpy-discussion > > > > > ____

Re: [Numpy-discussion] Cython-based OpenMP-accelerated quartic polynomial solver

2015-10-02 Thread Ryan May
rden Street, MS 83 > phone: (617) 496-7981 Cambridge, MA 02138-1516 > cell: (781) 363-0035 USA > > > > ___ > NumPy-Discussion mailing list > NumPy-Discussion@scipy.org > https://mail.scipy.org/mailman/listinfo/numpy-discussion > > -- Ryan May ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Python needs goto

2015-09-25 Thread Ryan May
On Fri, Sep 25, 2015 at 3:02 PM, Nathaniel Smith wrote: > > The coroutines in 3.5 are just syntactic sugar around features that were > added in *2*.5 (yield expressions and yield from), so no need to wait :-). > They fall far short of arbitrary continuations, though. > Correction: Python 3.4 gain

Re: [Numpy-discussion] Governance model request

2015-09-22 Thread Ryan May
This has to be one of the most bizarre threads I've ever read in my life. Somehow companies are lurking around like the boogeyman and academics are completely free of ulterior motives and conflicts of interest? This is just asinine--we're all people and have various motivations. (Having just gotten

Re: [Numpy-discussion] A proposed change to rollaxis() behavior for negative 'start' values

2010-09-23 Thread Ryan May
)).shape > Out[8]: (3, 4, 5, 6, 2) > > So it behaves just like insert. But "len(a.shape)" is rather > cumbersome, especially if you haven't given a a name yet: It's available as a.ndim Ryan -- Ryan May Graduate Rese

Re: [Numpy-discussion] Question about masked arrays

2010-09-20 Thread Ryan May
g about using asanyarray(). If you encounter a basic numpy function that calls asarray() but would work fine with masked arrays (or other subclasses), feel free to file/post as a bug. It's good to get those cases fixed where possible. (I've done this in t

Re: [Numpy-discussion] conversion to 1D array of specified dtype

2010-08-31 Thread Ryan May
),dtype='d') works but seems cumbersome atleast_1d(d).astype('d') Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] BOF notes: Fernando's proposal: NumPy?ndarray with named axes

2010-07-12 Thread Ryan May
C somewhere, at least at the BOF, this exact syntax was intended to be supported. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] question about creating numpy arrays

2010-05-20 Thread Ryan May
tion--it strips away information contained in the class, and IMHO should not be the default behavior. If I want the objects, I can force it: In [7]: np.array([a,b],dtype=np.object) Out[7]: array([2.0 m, 1.0 s], dtype=object) This works fine, but feels ugly since I have to explicitly tell numpy

Re: [Numpy-discussion] Another masked array question

2010-05-08 Thread Ryan May
; fails. Although single assignment works: > > I[13]: basic.data['Air_Temp'].data[0] = 30 > > Shouldn't this be working like the regular NumPy arrays do? Based on the traceback, I'd say it's because you're trying to replace the object pointed to by the .data at

Re: [Numpy-discussion] Is this odd?

2010-04-02 Thread Ryan May
On Fri, Apr 2, 2010 at 8:31 AM, Robert Kern wrote: > On Fri, Apr 2, 2010 at 08:28, Ryan May wrote: >> On Thu, Apr 1, 2010 at 10:07 PM, Shailendra >> wrote: >>> Hi All, >>> Below is some array behaviour which i think is odd >>>>>> a=arange(1

Re: [Numpy-discussion] Is this odd?

2010-04-02 Thread Ryan May
pty > array and non-empty array( irrespective to what is inside array). But by using: if not b[0]: You're not considering the array as a whole, you're looking at the first element, which is giving expected results. As I'm sure you're aware,

Re: [Numpy-discussion] Bug in logaddexp2.reduce

2010-03-31 Thread Ryan May
t;license" for more information. >>> import numpy as np >>> np.logaddexp2(-0.5849625007211563, -53.584962500721154) -0.58496250072115619 >>> np.logaddexp2(-1.5849625007211563, -53.584962500721154) -1.5849625007211561 >>> np.version.version '2.0.0.dev8313' R

Re: [Numpy-discussion] Set values of a matrix within a specified range to zero

2010-03-30 Thread Ryan May
On Tue, Mar 30, 2010 at 3:40 PM, Robert Kern wrote: > On Tue, Mar 30, 2010 at 16:35, Ryan May wrote: >> On Tue, Mar 30, 2010 at 3:16 PM, Friedrich Romstedt >> wrote: > >>> x *= ((x <= 23) | (x >= 45))  . >> >> Interesting. In an ideal world, I&#x

Re: [Numpy-discussion] Set values of a matrix within a specified range to zero

2010-03-30 Thread Ryan May
On Tue, Mar 30, 2010 at 3:16 PM, Friedrich Romstedt wrote: > 2010/3/30 Ryan May : >> On Tue, Mar 30, 2010 at 11:12 AM, Alan G Isaac wrote: >>> On 3/30/2010 12:56 PM, Sean Mulcahy wrote: >>>> 512x512 arrays.  I would like to set elements of the array whose value

Re: [Numpy-discussion] Set values of a matrix within a specified range to zero

2010-03-30 Thread Ryan May
On Tue, Mar 30, 2010 at 11:12 AM, Alan G Isaac wrote: > On 3/30/2010 12:56 PM, Sean Mulcahy wrote: >> 512x512 arrays.  I would like to set elements of the array whose value fall >> within a specified range to zero (eg 23<  x<  45). > > x[(23http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Making a 2to3 distutils command ?

2010-03-30 Thread Ryan May
here > are probably simple ways to do it without mixing distutils in. Out of curiosity, is there something wrong with the support for 2to3 that already exists within distutils? (Other than it just being distutils) http://bruynooghe.blogspot.com/2010/03/using-lib2to3-in-setuppy.htm

Re: [Numpy-discussion] numpy.trapz() doesn't respect subclass

2010-03-29 Thread Ryan May
think this addresses the concerns that were raised about the changes for subclasses in this case. Let me know if I've missed something (or if there's no way in hell any such patch will ever be committed). Thanks, Ryan -- Ryan May Graduate Research Assistant School of Meteorology Un

Re: [Numpy-discussion] numpy.trapz() doesn't respect subclass

2010-03-29 Thread Ryan May
On Mon, Mar 29, 2010 at 8:00 AM, Bruce Southey wrote: > On 03/27/2010 01:31 PM, Ryan May wrote: >> Because of the call to asarray(), the mask is completely discarded and >> you end up with identical results to an unmasked array, >> which is not what I'd expect.  Worse, t

Re: [Numpy-discussion] numpy.trapz() doesn't respect subclass

2010-03-27 Thread Ryan May
nterface code.) Yeah, it's kind of annoying, since the 10% is the cool part you want, and that 90% is thorny to design and boring to code. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] numpy.trapz() doesn't respect subclass

2010-03-27 Thread Ryan May
On Sat, Mar 27, 2010 at 11:12 AM, wrote: > On Sat, Mar 27, 2010 at 1:00 PM, Ryan May wrote: >> On Mon, Mar 22, 2010 at 8:14 AM, Ryan May wrote: >>> On Sun, Mar 21, 2010 at 11:57 PM,   wrote: >>>> On Mon, Mar 22, 2010 at 12:49 AM, Ryan May wrote: >>&g

Re: [Numpy-discussion] numpy.trapz() doesn't respect subclass

2010-03-27 Thread Ryan May
On Mon, Mar 22, 2010 at 8:14 AM, Ryan May wrote: > On Sun, Mar 21, 2010 at 11:57 PM,   wrote: >> On Mon, Mar 22, 2010 at 12:49 AM, Ryan May wrote: >>> Hi, >>> >>> I found that trapz() doesn't work with subclasses: >>> >>> http://

Re: [Numpy-discussion] numpy.trapz() doesn't respect subclass

2010-03-22 Thread Ryan May
On Sun, Mar 21, 2010 at 11:57 PM, wrote: > On Mon, Mar 22, 2010 at 12:49 AM, Ryan May wrote: >> Hi, >> >> I found that trapz() doesn't work with subclasses: >> >> http://projects.scipy.org/numpy/ticket/1438 >> >> A simple patch (attached) to cha

[Numpy-discussion] numpy.trapz() doesn't respect subclass

2010-03-21 Thread Ryan May
Hi, I found that trapz() doesn't work with subclasses: http://projects.scipy.org/numpy/ticket/1438 A simple patch (attached) to change asarray() to asanyarray() fixes the problem fine. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Okl

Re: [Numpy-discussion] Array bug with character (regression from 1.4.0)

2010-03-21 Thread Ryan May
things like this can slip), but I don't have the time at the moment to > come up with a more complete fix. That fixed it for me, thanks for getting done quickly. What's amusing is that I found it because pupynere was failing to write files where a variable had an attribute tha

[Numpy-discussion] Array bug with character (regression from 1.4.0)

2010-03-20 Thread Ryan May
ne): ValueError: assignment to 0-d array In [5]: np.__version__ Out[5]: '2.0.0.dev8297' Thoughts? (Filed at: http://projects.scipy.org/numpy/ticket/1436) Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

Re: [Numpy-discussion] Warnings in numpy.ma.test()

2010-03-18 Thread Ryan May
masked arrays (and masking invalid points) is a pipe dream, but every function in numpy should IMO deal properly with subclasses of ndarray. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] numpy.gradient() does not return ndarray subclasses

2010-03-18 Thread Ryan May
gradient until the next release after that. Thanks, Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma fix_gradient_with_subclasses.diff Description: Binary data ___ NumPy-Discussion mailing list NumPy-Discussion

Re: [Numpy-discussion] Warnings in numpy.ma.test()

2010-03-17 Thread Ryan May
On Wed, Mar 17, 2010 at 9:20 AM, Darren Dale wrote: > On Wed, Mar 17, 2010 at 10:11 AM, Ryan May wrote: >> On Wed, Mar 17, 2010 at 7:19 AM, Darren Dale wrote: >>> Is this general enough for your use case? I haven't tried to think >>> about how to change some glob

Re: [Numpy-discussion] Warnings in numpy.ma.test()

2010-03-17 Thread Ryan May
tbook use case for the python 2.5/2.6 context manager. Pity we can't use it yet... (and I'm not sure it'd be easy to wrap around the calls here.) Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ___

Re: [Numpy-discussion] Some help on matlab to numpy translation

2010-03-13 Thread Ryan May
last number, so really: ux(:,1,col) becomes: ux(0, 0, col) # or ux(:, 0, col) And if col is col = [2:(ly-1)] This needs to be: col = np.arange([1, ly - 1) Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Removing datetime support for 1.4.x series ?

2010-02-08 Thread Ryan May
ter. Nor do I. > >> I definitely should have counted to 100 before sending that. It wasn't >> helpful and I apologize. > > Actually, Darren, I found you fairly entertaining. > > ;) Agreed. I found it actually helpful

Re: [Numpy-discussion] scipy-tickets restarted emailing on jan17 - how about numpy-tickets ?

2010-01-25 Thread Ryan May
- or should I resubscribe? I'm seeing traffic on numpy-tickets since about the time scipy-tickets came back. I'd try resubscribing. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from Norman, Oklahoma, United States __

Re: [Numpy-discussion] Assigning complex values to a real array

2009-12-10 Thread Ryan May
sue too :-) ). +1 Completely agree. And to be clear, I realize the need not to break anything relying on this behavior. I just don't want people passing this off as a non-issue/'not a big deal'. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Assigning complex values to a real array

2009-12-09 Thread Ryan May
- ValueErrorTraceback (most recent call last) /home/rmay/ in () ValueError: invalid literal for float(): bob Why doesn't that silently downcast the strings to 0.0 or something silly? Because that would be *stupid*

Re: [Numpy-discussion] Assigning complex values to a real array

2009-12-08 Thread Ryan May
ers. I know to look for it now, but for inexperienced users, it's a pain. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Vector interpolation on a 2D grid (with realistic results)

2009-11-07 Thread Ryan May
aussian kernel isn't really *that* ad hoc considering the prevalence of Barnes/Cressman weighting for spatial averaging typically used in meteorology. And if you have no idea what I'm talking about, Google them, and you'll see. :) Ryan -- Ryan May

Re: [Numpy-discussion] Vector interpolation on a 2D grid (with realistic results)

2009-11-07 Thread Ryan May
aussian kernel isn't really *that* ad hoc considering the prevalence of Barnes/Cressman weighting for spatial averaging typically used in meteorology. And if you have no idea what I'm talking about, Google them, and you'll see. :) Ryan -- Ryan May

Re: [Numpy-discussion] recommended way to run numpy on snow leopard

2009-10-23 Thread Ryan May
On Fri, Oct 23, 2009 at 4:02 AM, David Warde-Farley wrote: > On 21-Oct-09, at 11:01 AM, Ryan May wrote: > >> ~/.local was added to *be the standard* for easily installing python >> packages in your user account.  And it works perfectly on the other >> major OSes, no tw

Re: [Numpy-discussion] Objected-oriented SIMD API for Numpy

2009-10-21 Thread Ryan May
On Wed, Oct 21, 2009 at 1:23 PM, Ryan May wrote: > On Wed, Oct 21, 2009 at 11:38 AM, Gregor Thalhammer > wrote: >> I once wrote a module that replaces the built in transcendental >> functions of numpy by optimized versions from Intels vector math >> library. If some

Re: [Numpy-discussion] Objected-oriented SIMD API for Numpy

2009-10-21 Thread Ryan May
from Intels vector math library or AMD's math core > library, see the doc's of -mveclibabi. You just need to recompile numpy > with proper compiler arguments. Do you have a link to the documentation for -mveclibabi? I can't find this anywhere and I'm *very* intereste

Re: [Numpy-discussion] recommended way to run numpy on snow leopard

2009-10-21 Thread Ryan May
on). Indeed, on linux, I do end up conflicting between my system numpy and my SVN install in ~/.local, and I don't have a problem with it. This comes with the territory when I start doing power-user/developer tasks. It just to me seems odd that the OS that works so hard to make so many

Re: [Numpy-discussion] recommended way to run numpy on snow leopard

2009-10-21 Thread Ryan May
, > '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode'] > > So I guess virtualenv or macports? Wow. Once again, Apple makes using python unnecessarily difficult. Someone needs a whack with a clue bat. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] genfromtxt to structured array

2009-09-25 Thread Ryan May
s and skip reading the names from the file: numpy.genfromtext(filename, delimiter=';', skiprows=1, names=['year', 'month', 'day', 'hour', 'value']) Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklaho

Re: [Numpy-discussion] masked arrays as array indices

2009-09-21 Thread Ryan May
e], > fill_value = 99) > > Is this the correct result or have I found a bug? > I see the same here on 1.4.0.dev7400. Seems pretty odd to me. Then again, it's a bit more complex using masked boolean arrays for indexing since you have True, False, and masked values. Anyone

Re: [Numpy-discussion] Error in numpy 1.4.0 dev 07384

2009-09-15 Thread Ryan May
ussion@scipy.org > http://mail.scipy.org/mailman/listinfo/numpy-discussion > > > ___ > NumPy-Discussion mailing list > NumPy-Discussion@scipy.org > http://mail.scipy.org/mailman/listinfo/numpy-discussion > > -

Re: [Numpy-discussion] Howto create a record array from arrays without copying their data

2009-08-12 Thread Ryan May
u could try just using a python dictionary to hold the arrays, depending on you motives behind using a record array. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from Norman, Oklahoma, United States ___ NumP

Re: [Numpy-discussion] Python 3.n and Scipy Numpy

2009-07-30 Thread Ryan May
On Thu, Jul 30, 2009 at 2:13 PM, BBands wrote: > Could someone point me toward some information on Scipy/Numpy and > Python 3.1? I'd like to upgrade, but can't seem to find the path. Scipy/Numpy are have not yet been ported to python 3.x Ryan -- Ryan May Graduate Research

Re: [Numpy-discussion] Problem with correlate

2009-06-04 Thread Ryan May
On Thu, Jun 4, 2009 at 5:14 AM, David Cournapeau wrote: > On Tue, Jun 2, 2009 at 10:56 PM, Ryan May wrote: > > On Tue, Jun 2, 2009 at 5:59 AM, David Cournapeau > > wrote: > >> > >> Robin wrote: > >> > On Tue, Jun 2, 2009 at 11:36 AM, David Courn

Re: [Numpy-discussion] Problem with correlate

2009-06-02 Thread Ryan May
ded to include complex-valued data). I think it's a real need, since everyone seems to keep rolling their own. I had to write my own just so that I can calculate a few lags in a vectorized fashion. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] skiprows option in loadtxt

2009-05-20 Thread Ryan May
xt(StringIO(s), skiprows=11) The last line yields, as expected: array([ 11., 12., 13., 14., 15., 16., 17., 18., 19.]) This is with 1.4.0.dev6983. Can we see code and data file? Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent fro

Re: [Numpy-discussion] Matlab/Numpy index order

2009-05-12 Thread Ryan May
it when I do > imshow( b[:,:,0] ). > It's going to be faster to do it without the transpose. Besides, for numpy, that imshow becomes: imshow(b[0]) Which, IMHO, looks better than Matlab. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma __

Re: [Numpy-discussion] object arrays and ==

2009-05-04 Thread Ryan May
y([False, False], dtype=bool) But based on these results, I have no idea what the factors might be. I know this works with datetime objects, but I'm really not sure why None and the empty list don't work. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University o

Re: [Numpy-discussion] loadtxt example problem ?

2009-05-04 Thread Ryan May
m on a Ms-Windows and a Linux Machine. > > I could run the example by adding a \n at the end of c : > c = StringIO("0 1\n2 3\n") > > > Is it the normal and expected behaviour ? > > Bruno. > > It's a bug that's

Re: [Numpy-discussion] Porting strategy for py3k

2009-04-23 Thread Ryan May
On Thu, Apr 23, 2009 at 11:23 AM, Christopher Barker wrote: > Ryan May wrote: > > On Thu, Apr 23, 2009 at 9:52 AM, David Cournapeau > But replacing print is not as easy as reduce. Things like print > > "yoyo", a do not work, for example. > > > >

Re: [Numpy-discussion] Porting strategy for py3k

2009-04-23 Thread Ryan May
not as easy as reduce. Things like print > "yoyo", a do not work, for example. > I think the point is that you can just change it to print("yoyo") which will work in both python 2.x and 3.x. The parenthesis are just extraneous in python 2.x. Now, the more complicated uses of p

Re: [Numpy-discussion] Using loadtxt() twice on same file freezes python

2009-03-26 Thread Ryan May
xactly what happens on my installation, but your problem may be > > platform specific). > > > > cheers, > > > > David > > Thanks for the quick replies! I'll report the bug. Before reporting the bug, can you upgrade to 1.2.1. I seem to remember some

[Numpy-discussion] svn and tickets email status

2009-03-16 Thread Ryan May
Hi, What's the status on SVN and ticket email notifications? The only messages I'm seeing since the switch is the occasional spam. Should I try re-subscribing? Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from: Norman Oklahoma Uni

Re: [Numpy-discussion] Error building SciPy SVN with NumPy SVN

2009-03-12 Thread Ryan May
On Thu, Mar 12, 2009 at 12:00 PM, David Cournapeau wrote: > On Fri, Mar 13, 2009 at 12:10 AM, Ryan May wrote: > > On Thu, Mar 12, 2009 at 9:55 AM, David Cournapeau > > wrote: > >> > >> On Thu, Mar 12, 2009 at 11:23 PM, Ryan May wrote: > >> > >&g

Re: [Numpy-discussion] Intel MKL on Core2 system

2009-03-12 Thread Ryan May
On Thu, Mar 12, 2009 at 10:11 AM, Francesc Alted wrote: > A Thursday 12 March 2009, Ryan May escrigué: > > I can get it working now with either the [mkl] section like your > > config or the following config: > > > > [DEFAULT] > > include_dirs = /opt/intel/mkl/10.

Re: [Numpy-discussion] Error building SciPy SVN with NumPy SVN

2009-03-12 Thread Ryan May
On Thu, Mar 12, 2009 at 9:55 AM, David Cournapeau wrote: > On Thu, Mar 12, 2009 at 11:23 PM, Ryan May wrote: > > > > > Fixed for me. I get a segfault running scipy.test(), but that's probably > > due to MKL. > > Yes, it is. Scipy run the test suite

Re: [Numpy-discussion] Error building SciPy SVN with NumPy SVN

2009-03-12 Thread Ryan May
On Thu, Mar 12, 2009 at 9:02 AM, David Cournapeau wrote: > On Thu, Mar 12, 2009 at 5:25 AM, Ryan May wrote: > > > That's fine. I just wanted to make sure I didn't do something weird > while > > getting numpy built with MKL. > > It should be fixed in r66

Re: [Numpy-discussion] Intel MKL on Core2 system

2009-03-12 Thread Ryan May
On Thu, Mar 12, 2009 at 8:30 AM, David Cournapeau < da...@ar.media.kyoto-u.ac.jp> wrote: > Ryan May wrote: > > > > [DEFAULT] > > include_dirs = /opt/intel/mkl/10.0.2.018/include/ > > <http://10.0.2.018/include/> > > library_dirs = /opt/intel

Re: [Numpy-discussion] Intel MKL on Core2 system

2009-03-12 Thread Ryan May
On Thu, Mar 12, 2009 at 3:05 AM, Francesc Alted wrote: > A Wednesday 11 March 2009, Ryan May escrigué: > > Thanks. That's actually pretty close to what I had. I was actually > > thinking that you were using only blas_opt and lapack_opt, since > > supposedly

Re: [Numpy-discussion] Error building SciPy SVN with NumPy SVN

2009-03-11 Thread Ryan May
On Wed, Mar 11, 2009 at 3:00 PM, David Cournapeau wrote: > On Thu, Mar 12, 2009 at 4:52 AM, Ryan May wrote: > > Hi, > > > > This is what I'm getting when I try to build scipy HEAD: > > > > building library "superlu_src" sources > >

[Numpy-discussion] Error building SciPy SVN with NumPy SVN

2009-03-11 Thread Ryan May
/rmay/.local/lib64/python2.5/site-packages/numpy/distutils/command/../mingw/gfortran_vs2003_hack.c: No such file or directory This didn't happen until I updated to *numpy* SVN HEAD. Numpy itself is building without errors and no tests fail on my system. Any ideas? Ryan -- Ry

Re: [Numpy-discussion] Intel MKL on Core2 system

2009-03-11 Thread Ryan May
On Wed, Mar 11, 2009 at 2:20 PM, Francesc Alted wrote: > A Wednesday 11 March 2009, Ryan May escrigué: > > You know, I knew this sounded familiar. If you regularly build > > against MKL, can you send me your site.cfg. I've had a lot more > > success getting t

Re: [Numpy-discussion] Intel MKL on Core2 system

2009-03-11 Thread Ryan May
On Wed, Mar 11, 2009 at 1:34 PM, Francesc Alted wrote: > A Wednesday 11 March 2009, Ryan May escrigué: > > Hi, > > > > I noticed the following in numpy/distutils/system_info.py while > > trying to get numpy to build against MKL: > > > > if cp

Re: [Numpy-discussion] Intel MKL on Core2 system

2009-03-11 Thread Ryan May
On Wed, Mar 11, 2009 at 1:41 PM, David Cournapeau wrote: > On Thu, Mar 12, 2009 at 3:15 AM, Ryan May wrote: > > Hi, > > > > I noticed the following in numpy/distutils/system_info.py while trying to > > get numpy to build against MKL: > >

[Numpy-discussion] Intel MKL on Core2 system

2009-03-11 Thread Ryan May
e2 Duo system, even though the platform is very much 'em64t'. I think that check should instead read: elif cpu.is_Xeon() or cpu.is_Core2(): Thoughts? Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from: Norman Oklahoma United States. ___

[Numpy-discussion] numpy-svn mails

2009-03-06 Thread Ryan May
Hi, Is anyone getting mails of the SVN commits? I've gotten 1 spam message from that list, but no commits. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ___ Numpy-discussion mailing list Numpy-discu

Re: [Numpy-discussion] Fancy indexing question:

2009-02-24 Thread Ryan May
23]]) i = np.array([1, 3, 4]).reshape(-1,1) j = np.array([1, 3]) a[i,j] You need to make i,j conformable to the numpy broadcasting rules by manually appending size 1 dimension. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from: Norman Oklahoma U

Re: [Numpy-discussion] parallel compilation of numpy

2009-02-18 Thread Ryan May
On Wed, Feb 18, 2009 at 8:19 PM, David Cournapeau wrote: > On Thu, Feb 19, 2009 at 11:07 AM, Ryan May wrote: > > > > > Not to nitpick, but this is the second time I've seen this lately: > > > > physician == medical doctor != physicist :) > > You're r

Re: [Numpy-discussion] parallel compilation of numpy

2009-02-18 Thread Ryan May
Not if you are a physician: my impression in undergrad was that > infinity / 8 could be anything from 0 to infinity in physics :) > Not to nitpick, but this is the second time I've seen this lately: physician == medical doctor != physicist :) Ryan -- Ryan May Graduate Researc

Re: [Numpy-discussion] Integer cast problems

2009-02-12 Thread Ryan May
ng point says that what should be an exact result won't necessarily be exact. Try using N.around. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] genloadtxt: dtype=None and unpack=True

2009-02-12 Thread Ryan May
On Wed, Feb 11, 2009 at 10:47 PM, Pierre GM wrote: > > On Feb 11, 2009, at 11:38 PM, Ryan May wrote: > > > Pierre, > > > > I noticed that using dtype=None with a heterogeneous set of data, > > trying to use unpack=True to get the columns into separate arrays &

[Numpy-discussion] genloadtxt: dtype=None and unpack=True

2009-02-11 Thread Ryan May
a list of separate arrays. Does this seem like a good idea to you? Here's a test case: from cStringIO import StringIO s = '2,1950-02-27,35.55\n2,1951-02-19,35.27\n' a,b,c = np.genfromtxt(StringIO(s), delimiter=',', unpack=True, missing=' ', dtype=None) Ryan -- R

Re: [Numpy-discussion] PEP: named axis

2009-02-06 Thread Ryan May
t want to make any assumptions, it becomes the > > user's responsibility to do it manually. > > I don't think there is *any* sane way of numpy propagating the user's > metadata. The user must be the one to do it. > I'm +1 on all of what Robert said.

[Numpy-discussion] Argsort

2009-02-05 Thread Ryan May
Hi, Ok, what am I missing here: x = np.array([[4,2],[5,3]]) x[x.argsort(1)] array([[[5, 3], [4, 2]], [[5, 3], [4, 2]]]) I was expecting: array([[2,4],[3,5]]) Certainly not a 3D array. What am I doing wrong? Ryan -- Ryan May Graduate Research Assistant School of

Re: [Numpy-discussion] Operations on masked items

2009-02-03 Thread Ryan May
Pierre GM wrote: > On Feb 3, 2009, at 4:00 PM, Ryan May wrote: >> Well, I guess I hit send too soon. Here's one easy solution >> (consistent with >> what you did for __radd__), change the code for __rmul__ to do: >> >> return multiply(self, othe

Re: [Numpy-discussion] Operations on masked items

2009-02-03 Thread Ryan May
Ryan May wrote: > Pierre, > > I know you did some preliminary work on helping to make sure that doing > operations on masked arrays doesn't change the underlying data. I ran into > the > following today. > > import numpy as np > a = np.ma.array([1,2,3], mask=[F

[Numpy-discussion] Operations on masked items

2009-02-03 Thread Ryan May
values end up with the value of the scalar. If this is getting too hairy to handle not touching data, I understand. I just thought I should point out the inconsistency here. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University o

Re: [Numpy-discussion] genloadtxt question

2009-02-03 Thread Ryan May
Pierre GM wrote: > On Feb 3, 2009, at 11:24 AM, Ryan May wrote: > >> Pierre, >> >> Should the following work? >> >> import numpy as np >> from StringIO import StringIO >> >> converter = {'date':lambda s: datetime.strptime(s,'%

[Numpy-discussion] genloadtxt question

2009-02-03 Thread Ryan May
: time data did not match format: data=0 fmt=%Y-%m-%d %H:%M:%SZ Which comes from a part of the code in updating converters where it passes the string '0' to the converter. Are the converters expected to handle what amounts to bad input even though the file itself has no such

Re: [Numpy-discussion] Fortran binary files and numpy/scipy

2009-02-02 Thread Ryan May
Nils Wagner wrote: > On Mon, 02 Feb 2009 14:07:35 -0600 > Ryan May wrote: >> Nils Wagner wrote: >>>>> Is this a 64-bit problem ? >>>>> >>>> I don't know if it's a 64-bit problem per-se, so much as >>>> a d

Re: [Numpy-discussion] Fortran binary files and numpy/scipy

2009-02-02 Thread Ryan May
3.4484552433329538e-313), > (0, 16, 0, 5.2413296037731544e-312), > (0, 1077805056, 16, 3.3951932655444357e-313), (0, > 19, 246, 27.0), > (16, 0, 16, 4.2439915819305446e-313), > (245, 0, 1077411840, 7.9050503334599447e-323)], >dtype=[('isize

Re: [Numpy-discussion] Fortran binary files and numpy/scipy

2009-02-02 Thread Ryan May
Nils Wagner wrote: > On Mon, 02 Feb 2009 10:17:13 -0600 > Ryan May wrote: >> Every write statement in fortran first writes out the >> number of bytes that will >> follow, *then* the actual data. So, for instance, the >> first write to file in >&g

  1   2   >