[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
ssue: >> >> https://github.com/numpy/numpy/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 >> >&

[Numpy-discussion] Arrays and format()

2017-02-28 Thread Ryan May
e 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 mailing list NumPy-Discus

Re: [Numpy-discussion] array comprehension

2016-11-04 Thread Ryan May
it could be nice to add an axis > argument, 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 _

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.

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 <nathan12...@gmail.com> 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 <rma...@gmail.com> wrote: > >> Fine with

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

2016-07-14 Thread Ryan May
would work for me. Dinner? >> On Jul 13, 2016 2:43 PM, "Ryan May" <rma...@gmail.com> wrote: >> >>> On Mon, Jul 11, 2016 at 12:39 PM, Chris Barker <chris.bar...@noaa.gov> >>> wrote: >>> >>>> >>>> >>>>

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

2016-07-13 Thread Ryan May
evening, which would overlap at least part of multiple happy hour events. I lean towards evening. Thoughts? Ryan -- Ryan May ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion

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

2016-07-11 Thread Ryan May
us on) > I agree that a more general 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

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

2016-07-10 Thread Ryan May
s can be an informal BOF session? > > Nathan > > > On Sunday, July 10, 2016, Ryan May <rma...@gmail.com> wrote: > >> Hi Nathaniel, >> >> Thursday works for me; anyone else interested is welcome to join. >> >> Ryan >> >> On Sun, Jul

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

2016-07-10 Thread Ryan May
on/Tue/Wed between 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 <rma...@gmail.com> wrote: > > Greetings! > > > > I've been beating my head against a wall trying to work seam

[Numpy-discussion] Custom Dtype/Units discussion

2016-07-09 Thread Ryan May
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
n mailing > listNumPy-Discussion@scipy.orghttps://mail.scipy.org/mailman/listinfo/numpy-discussion > > > > > ___ > 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] Cython-based OpenMP-accelerated quartic polynomial solver

2015-10-02 Thread Ryan May
> > > > > -- > > Jonathan D. Slavin Harvard-Smithsonian CfA > jsla...@cfa.harvard.edu 60 Garden Street, MS 83 > phone: (617) 496-7981 Cambridge, MA 02138-1516 > cell: (781) 363-0035 USA > __

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. >

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

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

2010-09-23 Thread Ryan May
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 Research Assistant School of Meteorology University of Oklahoma

Re: [Numpy-discussion] Question about masked arrays

2010-09-20 Thread Ryan May
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 the past.) Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

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

2010-08-31 Thread Ryan May
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
. 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
something. It feels to me like it's violating the principle of in the face of ambiguity, resist the temptation to guess. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ___ NumPy-Discussion mailing list NumPy

Re: [Numpy-discussion] Another masked array question

2010-05-08 Thread Ryan May
it's because you're trying to replace the object pointed to by the .data attribute. Instead, try to just change the bits contained in .data: basic.data['Air_Temp'].data[:] = np.ones(len(basic.data['Air_Temp']))*30 Ryan -- Ryan May Graduate Research Assistant School of Meteorology University

Re: [Numpy-discussion] Is this odd?

2010-04-02 Thread Ryan May
need to do is: if b.any(): or: if b.all() Now for determining empty or not, you'll need to look at len(b) or b.shape Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ___ NumPy-Discussion mailing list NumPy

Re: [Numpy-discussion] Is this odd?

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

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

2010-03-31 Thread Ryan May
, -53.584962500721154) -1.5849625007211561 np.version.version '2.0.0.dev8313' 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

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

2010-03-30 Thread Ryan May
, 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.html Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

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

2010-03-30 Thread Ryan May
more obvious (doing a multiply between boolean arrays to get an AND operator seems a tad odd): x[(23x) (x45)] = 0 Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ___ NumPy-Discussion mailing list NumPy

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 friedrichromst...@gmail.com wrote: 2010/3/30 Ryan May rma...@gmail.com: On Tue, Mar 30, 2010 at 11:12 AM, Alan G Isaac ais...@american.edu wrote: On 3/30/2010 12:56 PM, Sean Mulcahy wrote: 512x512 arrays.  I would like to set elements

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 robert.k...@gmail.com wrote: On Tue, Mar 30, 2010 at 16:35, Ryan May rma...@gmail.com wrote: On Tue, Mar 30, 2010 at 3:16 PM, Friedrich Romstedt friedrichromst...@gmail.com wrote: x *= ((x = 23) | (x = 45))  . Interesting. In an ideal world, I'd

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 bsout...@gmail.com 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, the actual

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

2010-03-29 Thread Ryan May
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 University of Oklahoma

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 rma...@gmail.com wrote: On Sun, Mar 21, 2010 at 11:57 PM,  josef.p...@gmail.com wrote: On Mon, Mar 22, 2010 at 12:49 AM, Ryan May rma...@gmail.com wrote: Hi, I found that trapz() doesn't work with subclasses: http://projects.scipy.org/numpy/ticket

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

2010-03-27 Thread Ryan May
On Sat, Mar 27, 2010 at 11:12 AM, josef.p...@gmail.com wrote: On Sat, Mar 27, 2010 at 1:00 PM, Ryan May rma...@gmail.com wrote: On Mon, Mar 22, 2010 at 8:14 AM, Ryan May rma...@gmail.com wrote: On Sun, Mar 21, 2010 at 11:57 PM,  josef.p...@gmail.com wrote: On Mon, Mar 22, 2010 at 12:49 AM

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

2010-03-27 Thread Ryan May
-- 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-22 Thread Ryan May
On Sun, Mar 21, 2010 at 11:57 PM, josef.p...@gmail.com wrote: On Mon, Mar 22, 2010 at 12:49 AM, Ryan May rma...@gmail.com wrote: 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

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

2010-03-21 Thread Ryan May
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 that consisted of a single letter. Ryan -- Ryan May Graduate Research Assistant

[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 Oklahoma

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

2010-03-20 Thread Ryan May
.dev8297' Thoughts? (Filed at: http://projects.scipy.org/numpy/ticket/1436) Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org

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

2010-03-18 Thread Ryan May
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@scipy.org http

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

2010-03-18 Thread Ryan May
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

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

2010-03-17 Thread Ryan May
the textbook 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 ___ NumPy

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 dsdal...@gmail.com wrote: On Wed, Mar 17, 2010 at 10:11 AM, Ryan May rma...@gmail.com wrote: On Wed, Mar 17, 2010 at 7:19 AM, Darren Dale dsdal...@gmail.com wrote: Is this general enough for your use case? I haven't tried to think about how

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

2010-03-13 Thread Ryan May
([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
that. It wasn't helpful and I apologize. Actually, Darren, I found you fairly entertaining. ;) Agreed. I found it actually helpful in hammering home something said by Travis that was somewhat ignored. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

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

2010-01-25 Thread Ryan May
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
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
. 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-08 Thread Ryan May
complex data from some routine into a new array (without specifying a dtype) ends up with the complex downcast silently to float64. The only reason you even notice it is because at the end you have incorrect answers. I know to look for it now, but for inexperienced users, it's a pain. Ryan -- Ryan

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

2009-11-07 Thread Ryan May
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 Graduate Research Assistant School of Meteorology University of Oklahoma

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

2009-11-07 Thread Ryan May
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 Graduate Research Assistant School of Meteorology University of Oklahoma

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 d...@cs.toronto.edu 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 twiddling of paths

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

2009-10-21 Thread Ryan May
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* interested. Ryan -- Ryan May Graduate

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 rma...@gmail.com wrote: On Wed, Oct 21, 2009 at 11:38 AM, Gregor Thalhammer gregor.thalham...@gmail.com wrote: I once wrote a module that replaces the built in transcendental functions of numpy by optimized versions from Intels vector math library

Re: [Numpy-discussion] genfromtxt to structured array

2009-09-25 Thread Ryan May
: numpy.genfromtext(filename, delimiter=';', skiprows=1, names=['year', 'month', 'day', 'hour', 'value']) Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from Norman, Oklahoma, United States ___ NumPy-Discussion mailing

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

2009-09-21 Thread Ryan May
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 have thoughts on what *should* happen here? Or is this it? Ryan -- Ryan May Graduate

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

2009-09-15 Thread Ryan May
/numpy-discussion ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

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

2009-08-12 Thread Ryan May
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 ___ NumPy-Discussion mailing

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 bba...@gmail.com 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 courn...@gmail.com wrote: On Tue, Jun 2, 2009 at 10:56 PM, Ryan May rma...@gmail.com wrote: On Tue, Jun 2, 2009 at 5:59 AM, David Cournapeau da...@ar.media.kyoto-u.ac.jp wrote: Robin wrote: On Tue, Jun 2, 2009 at 11:36 AM, David

Re: [Numpy-discussion] Problem with correlate

2009-06-02 Thread Ryan May
, and it takes less memory too). I'd be +1 on including something like this (provided it expanded 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

Re: [Numpy-discussion] skiprows option in loadtxt

2009-05-20 Thread Ryan May
(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 from Norman, Oklahoma

Re: [Numpy-discussion] loadtxt example problem ?

2009-05-04 Thread Ryan May
behaviour ? Bruno. It's a bug that's been fixed. Numpy 1.0.4 is quite a bit out of date, so I'd recommend updating to the latest (1.3). Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ___ Numpy-discussion

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

2009-05-04 Thread Ryan May
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 of Oklahoma Sent from Norman, Oklahoma, United States

Re: [Numpy-discussion] Porting strategy for py3k

2009-04-23 Thread Ryan May
(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 print won't be as easy to change, but I'm not sure how prevalent their use is. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University

Re: [Numpy-discussion] Porting strategy for py3k

2009-04-23 Thread Ryan May
On Thu, Apr 23, 2009 at 11:23 AM, Christopher Barker chris.bar...@noaa.govwrote: Ryan May wrote: On Thu, Apr 23, 2009 at 9:52 AM, David Cournapeau courn...@gmail.com But replacing print is not as easy as reduce. Things like print yoyo, a do not work, for example. I think

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

2009-03-26 Thread Ryan May
tells me it got fixed in between 1.2.0 and 1.2.1. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from Norman, Oklahoma, United States ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http

[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 United States

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 fal...@pytables.org 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 the [mkl] style section

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/mkl/10.0.2.018/lib/em64t/:/usr/lib http://10.0.2.018/lib/em64t/:/usr

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 courn...@gmail.comwrote: On Thu, Mar 12, 2009 at 5:25 AM, Ryan May rma...@gmail.com 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 r6650 Fixed for me

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 courn...@gmail.comwrote: On Thu, Mar 12, 2009 at 11:23 PM, Ryan May rma...@gmail.com 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 fine for me. While

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 fal...@pytables.orgwrote: 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.0.2.018/include

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 courn...@gmail.comwrote: On Fri, Mar 13, 2009 at 12:10 AM, Ryan May rma...@gmail.com wrote: On Thu, Mar 12, 2009 at 9:55 AM, David Cournapeau courn...@gmail.com wrote: On Thu, Mar 12, 2009 at 11:23 PM, Ryan May rma...@gmail.com wrote

[Numpy-discussion] Intel MKL on Core2 system

2009-03-11 Thread Ryan May
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 mailing list Numpy

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 courn...@gmail.comwrote: On Thu, Mar 12, 2009 at 3:15 AM, Ryan May rma...@gmail.com wrote: Hi, I noticed the following in numpy/distutils/system_info.py while trying to get numpy to build against MKL: if cpu.is_Itanium

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 fal...@pytables.org 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 cpu.is_Itanium

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 fal...@pytables.org 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 the build to work using

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

2009-03-11 Thread Ryan May
happen until I updated to *numpy* SVN HEAD. Numpy itself is building without errors and no tests fail on my system. Any ideas? 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-discussion

Re: [Numpy-discussion] Fancy indexing question:

2009-02-24 Thread Ryan May
-- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from: Norman Oklahoma United States. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] parallel compilation of numpy

2009-02-18 Thread Ryan May
: 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 Research Assistant School of Meteorology University

Re: [Numpy-discussion] parallel compilation of numpy

2009-02-18 Thread Ryan May
On Wed, Feb 18, 2009 at 8:19 PM, David Cournapeau courn...@gmail.comwrote: On Thu, Feb 19, 2009 at 11:07 AM, Ryan May rma...@gmail.com wrote: Not to nitpick, but this is the second time I've seen this lately: physician == medical doctor != physicist :) You're right of course

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 pgmdevl...@gmail.com 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 (instead of a structured

Re: [Numpy-discussion] Integer cast problems

2009-02-12 Thread Ryan May
-- 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

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

2009-02-11 Thread Ryan May
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 -- Ryan May Graduate Research Assistant School

Re: [Numpy-discussion] PEP: named axis

2009-02-06 Thread Ryan May
considered writing a subclass/wrapping just so I can make metadata available while passing around recarrays. It'd save me a bunch of work. I don't think there's anything wrong with making the user propagate the dictionary. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University

[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

[Numpy-discussion] genloadtxt question

2009-02-03 Thread Ryan May
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 problems? Specifying the dtype doesn't appear to help either. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

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,'%Y-%m-%d %H:%M: %SZ')} data = np.ndfromtxt(StringIO('2009-02-03 12:00:00Z,72214.0

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=[False, True, False]) b = a * 10 c = 10

[Numpy-discussion] Operations on masked items

2009-02-03 Thread Ryan May
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 of Oklahoma

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, other) instead of: return multiply(other, self

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

2009-02-02 Thread Ryan May
to these values: 16 X(1) Y(1) Z(1) The 16 comes from the size of 2 ints and 1 double. Since you're always writing out the 3 values, and they're always the same size, try adding another integer column as the first field in your array. Ryan -- Ryan May Graduate Research Assistant School of Meteorology

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 rma...@gmail.com 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 your program will write the bytes

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

2009-02-02 Thread Ryan May
','int32'),('icol','int32'),('value','float')]) 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] 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 rma...@gmail.com 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 disagreement between fortran and numpy. Numpy is making the size of the integer fields 8

Re: [Numpy-discussion] minor improvment to ones

2009-01-30 Thread Ryan May
numpy.ones to fill with fives makes no sense to me. But I would be +1 on having a function called numpy.values or numpy.fill that would create and fill an ndarray with arbitrary values. I completely agree here. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University

Re: [Numpy-discussion] minor improvment to ones

2009-01-30 Thread Ryan May
. I think that's right, but at that point, what gain is that over using a regular constant and relying on numpy's broadcasting? Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ___ Numpy-discussion mailing list

Re: [Numpy-discussion] example reading binary Fortran file

2009-01-30 Thread Ryan May
))[0] if fourEnd: f.seek(4,1) #=== I'm not sure about whether or not its optimized, but I can tell you that the mystery 4 bytes are the number of bytes it that wrote out followed by that number of bytes of data. Ryan -- Ryan May Graduate Research

  1   2   >