Re: [Numpy-discussion] f2py, numpy.distutils and multiple Fortran source files

2015-12-03 Thread Tim Cera
and include that in sources. I think I only used f2py to create the pyf file and not directly part of the compilation process. If memory serves the Extension function knows what to do with the pyf file. Kindest regards, Tim ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] future of f2py and Fortran90+

2015-12-03 Thread Tim Cera
e a handful of users. So I've been toying with the idea to use ctypes + iso_c_binding. I could then use MinGW on Windows to compile the code for all versions of Python that have ctypes. I've tested this approach on a few functions and it works, but far from done. My $0.02. Kindest

Re: [Numpy-discussion] proposal: min, max of complex should give warning

2013-12-31 Thread Cera, Tim
easy enough by using the absolute value. I think what Numpy does is normal enough to not justify a warning, but leave this to others because as I pointed out in the beginning I don't work with complex numbers. Kindest regards, Tim ___ NumPy-Disc

[Numpy-discussion] diferences between frompyfunc & vectorize

2013-10-27 Thread Tim Michelsen
Hello, what are the differences between the two transformation functions frompyfunc & vectorize * http://docs.scipy.org/doc/numpy/reference/generated/numpy.vectorize.html * http://docs.scipy.org/doc/numpy/reference/generated/numpy.frompyfunc.html I cannot see the which one I shall prefer for what

Re: [Numpy-discussion] PEP8

2013-09-09 Thread Cera, Tim
am not stepping forward to do it. At this point I simply have to say that I am a 'balcony muppet'. Much thanks to Josef for the reminder about where I learned my curmudgeony ways. Those guys made the show! Kindest regards, Tim On Mon, Sep 9, 2013 at 12:08 PM, Blake Griffith wrote: &

Re: [Numpy-discussion] (no subject)

2013-09-03 Thread Cera, Tim
len(a) + 2).astype(float)[::-1] # Ramp from 1 to 0 exclusive a = (a/a[0])[1:-1] # Insert ramp into factor factor[sl] = a result = result * factor print 'result=', len(result) relevation = F.irfft(result, len(nelevation)) print 're

Re: [Numpy-discussion] Strange behavior with boolean slices...

2013-08-25 Thread Cera, Tim
Pardon the noise. The behavior is described right there in the documentation of broadcast_arrays. Kindest regards, Tim On Sun, Aug 25, 2013 at 8:53 PM, Cera, Tim wrote: > Figured it out. I created 'day' as a broadcast array. Does this > catch other people? Basically chang

Re: [Numpy-discussion] Strange behavior with boolean slices...

2013-08-25 Thread Cera, Tim
Figured it out. I created 'day' as a broadcast array. Does this catch other people? Basically changing day[0] would change the entire 'day' array. I guess all other elements of the day array are views of day[0]. Made a copy and everything works as expected. Kindest regar

[Numpy-discussion] Strange behavior with boolean slices...

2013-08-25 Thread Cera, Tim
[41]: a Out[41]: array([12, 1]) Am I missing something? Is this supposed to happen? Version 1.7.1. Kindest regards, Tim ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Deprecation of financial routines

2013-08-19 Thread Cera, Tim
was to remove the NotImplemented errors. They really bothered me. I thought that if the functions were already included in numpy, they must be useful to someone. For me, typically I do any financial work in a spreadsheet - that is why I vote 0. Kindest regards, Tim

Re: [Numpy-discussion] numpy tests errors and failures

2013-06-03 Thread Tim Burgess
On Sat, 2013-06-01 at 20:09 -0400, Warren Weckesser wrote: > I'm using Ubuntu 12.04, so I suspect I won't be the only one who sees > these. > gcc on 12.04 (precise) should be 4.6.3 See http://packages.ubuntu.com/search?keywords=gcc&searchon=names&suite=precise§ion=all

Re: [Numpy-discussion] Is there a way to reset an accumulate function?

2012-10-24 Thread Cera, Tim
([ 4., 5., 7., nan, nan, nan, nan, nan, nan, nan], dtype=float32) >>> nancumsum(a) array([ 4., 5., 7., 0., 18., 23., 29., 29., 37., 46.]) Excellent! Kindest regards, Tim ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Is there a way to reset an accumulate function?

2012-10-23 Thread Cera, Tim
Close, but not exactly what I need. I want the 'cumsum', so given the 'a' in your example: array([1,2,6,10,0,1,3,6,0,3]) I just made a loop, testing for 'nan'. Not elegant, but it works so I am not complaining. Kindest regards, Tim __

[Numpy-discussion] Is there a way to reset an accumulate function?

2012-10-23 Thread Cera, Tim
in a moment. Kindest regards, Tim ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] [numpy] ENH: Initial implementation of a 'neighbor' calculation (#303)

2012-10-15 Thread Cera, Tim
ions in ndimage are called zonal functions in the GIS field. Kindest regards, Tim ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Fwd: [numpy] ENH: Initial implementation of a 'neighbor' calculation (#303)

2012-10-12 Thread Cera, Tim
nes. Note also that ArcGIS is limited to 2-d, and a 3x3 neighborhood. Kindest regards, Tim ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Fwd: [numpy] ENH: Initial implementation of a 'neighbor' calculation (#303)

2012-10-12 Thread Cera, Tim
esktop/9.2/index.cfm?TopicName=An%20overview%20of%20the%20Neighborhood%20tools If the language is confusing, now is the time to change the names. Kindest regards, Tim On Fri, Oct 12, 2012 at 8:33 AM, Sturla Molden wrote: > On 10.10.2012 15:42, Nathaniel Smith wrote: > > This PR submitted a

Re: [Numpy-discussion] Fwd: [numpy] ENH: Initial implementation of a 'neighbor' calculation (#303)

2012-10-10 Thread Cera, Tim
milar functionality would be available. That particular function isn't useful to me directly, but perhaps others? Kindest regards, Tim ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Multidimensional neighbours

2012-08-16 Thread Cera, Tim
= np.ones((3,3,3)) >>> ans = neighbor(inputarr, weight, np.mean, pad = None) In place of 'np.mean' you can define your own function - game of life function for example. The PR has not had much activity, so if you can review/comment/program th

Re: [Numpy-discussion] Looking for the most important bugs, documentation needs, etc.

2012-07-10 Thread Cera, Tim
ocs.scipy.org/numpy/search/ and click on the 'No Examples' or 'No Documentation' links. Same searches are available with scipy at http://docs.scipy.org/scipy/search/, which Ralf already pointed out needs the most work. Kindest regards, Tim

Re: [Numpy-discussion] Meta: help, devel and stackoverflow

2012-06-28 Thread Cera, Tim
oks pretty nice, EXCEPT that the last commit was in 2009. On the other have it could be that it has reached perfection. :-) Kindest regards, Tim ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Meta: help, devel and stackoverflow

2012-06-28 Thread Cera, Tim
A little more research shows that we could have a http://numpy.stackexchange.com. The requirements are just to have people involved. See http://area51.stackexchange.com/faq for more info. Kindest regards, Tim ___ NumPy-Discussion mailing list NumPy

Re: [Numpy-discussion] Meta: help, devel and stackoverflow

2012-06-28 Thread Cera, Tim
You are correct, I meant http://programmers.stackexchange.com/ And on a site like stackexchange I could actually edit my post instead of my mistake being permanent. :-) Kindest regards, Tim ___ NumPy-Discussion mailing list NumPy-Discussion

Re: [Numpy-discussion] Meta: help, devel and stackoverflow

2012-06-28 Thread Cera, Tim
time is right. Kindest regards, Tim ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Neighborhood iterator: way to easily check which elements have already been visited in parent iterator?

2012-06-13 Thread Tim Cera
be very interested. Kindest regards, Tim ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Internationalization of numpy/scipy docstrings...

2012-05-22 Thread Tim Cera
ow to put 'maskna' or '1.7' in the subject? In defense of there not be much interest is that the people who would possibly benefit, aren't reading English mailing lists. Kindest regards, Tim ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Internationalization of numpy/scipy docstrings...

2012-05-20 Thread Tim Cera
tle/index (You have to get the development versions of translate and pootle to work with Django 1.4.) Kindest regards, Tim ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Internationalization of numpy/scipy docstrings...

2012-05-19 Thread Tim Cera
now that. I suggested modifying np.info since I suspect that a new np.info would be easier since changes to support i18n would be contained to one command. Of course if there is something easier/better, let's go with that. Kindest regards, Tim ___ Nu

[Numpy-discussion] Internationalization of numpy/scipy docstrings...

2012-05-19 Thread Tim Cera
x-build is working, then the target build directory (which I called 'gettext' above) would be in a location accessible to pootle. Kindest regards, Tim ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] python import question

2012-05-18 Thread Tim Cera
kage' a couple of times in a row in order to remove old versions of packages, then run 'pip install package'. Old packages and pip seem to be a problem if you have used 'easy_install' to install the older packages. Kindest regards, Tim ___

[Numpy-discussion] Documentation roles in the numpy/scipy documentation editor

2012-05-07 Thread Tim Cera
tinually small improvements rather that a point when it is 'Done'. Regardless of what decision is made, the single 'Proofed' docstring should be available for editing. I can't even find what it is. I imagine that it should be on the docstring page at http://docs.scipy.or

Re: [Numpy-discussion] Removing masked arrays for 1.7? (Was 1.7 blockers)

2012-04-17 Thread Tim Cera
o remember if I masked, then unmasked values and I don't recall any time that I did that. Of course my use cases are constrained to what I have done in the past. It feels like a bad idea, for the sake of saving the memory for the mask bits. Now, the amazing thing is tha

Re: [Numpy-discussion] physics simulation

2012-04-12 Thread Tim Cera
variable. LD_LIBRARY_PATH is a colon separated list of paths that is searched for dynamic libraries by both regular programs and by Python. Use... env | grep LD_ to show you the existing LD_LIBRARY_PATH. To change/append depends on your shell. Kindest regards, Tim

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

2012-04-12 Thread Tim Cera
d(marr) np.max(a) 9 # mask is not used ma.max(a) 4 # mask is used Kindest regards, Tim ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Can't access NumPy documentation elements

2012-04-05 Thread Whitcomb, Mr. Tim
es in the table that I remember as being links, but are just plain text currently. Did something go wrong with a build? Thanks, Tim [w] ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Style for pad implementation in 'pad' namespace or functions under np.lib

2012-04-02 Thread Tim Cera
guments. The order of the arguments - I don't care. I realize that this thread is around 26 messages long now, but if everyone who is interested in this could weigh in one more time about this one issue. To minimize discussion on the list, you can add a comment to the pull request at https

Re: [Numpy-discussion] Style for pad implementation in 'pad' namespace or functions under np.lib

2012-04-02 Thread Tim Cera
he PR committed with a > single-function interface. I like having the array as the first argument > to that function (it is more consistent). They keyword can be called mode > or method > > Tim, what do you think of that? Further developments can happen in a > separate PR. &g

Re: [Numpy-discussion] Style for pad implementation in 'pad' namespace or functions under np.lib

2012-03-30 Thread Tim Cera
ctions as additional user-exposed entry-points, I think the > current names in the PR met with objections? (The current names are > like "np.lib.pad.pad_mean".) Names? Kindest regards, Tim ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Style for pad implementation in 'pad' namespace or functions under np.lib

2012-03-30 Thread Tim Cera
s, **kwargs): vector[:pad_tuple[0]] = kwargs['constant_values'][iaxis][0] vector[-pad_tuple[1]:] = kwargs['constant_values'][iaxis][1] return vector constants = ((10,20), (30,40)) # 10 will be prepended to all rows (axis 0) # 20 will be

Re: [Numpy-discussion] Style for pad implementation in 'pad' namespace or functions under np.lib

2012-03-29 Thread Tim Cera
have some goodness? Kindest regards, Tim ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Style for pad implementation in 'pad' namespace or functions under np.lib

2012-03-29 Thread Tim Cera
) # then you would have a confusing b = mean(a, 2) Because of that I would vote for 'pad.pad_xxx' instead of 'pad.xxx'. In fact at one time I named the functions 'pad.pad_with_xxx' which was a little overkill. Kindest regards, Tim __

[Numpy-discussion] Style for pad implementation in 'pad' namespace or functions under np.lib

2012-03-28 Thread Tim Cera
lib? Do I really care about this? Not really since it isn't a utility issue, but I contend that it would look better to pull these functions into their own namespace. Is there a consensus? The current pull request: https://github.com/numpy/numpy/pull/242 Kinde

[Numpy-discussion] Pull request for pad functions

2012-03-23 Thread Tim Cera
think it looks pretty good right now. Kindest regards, Tim ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] loop through values in a array and find maximum as looping

2011-12-06 Thread Tim Burgess
#x27;T_SFC'][:] If your NetCDF files are properly structured, the above line will give you a masked array. If you really need to put a fill value in to go to a non-masked array, better to do this just once after the maximums have been determined. Tim ___

Re: [Numpy-discussion] numpy 1.7.0 release

2011-12-05 Thread Tim Burgess
eview in a 1.7.0 release will likely raise it's visibility - a lot of people will read release notes of a newer version but won't ever track discussions in a mailing list. Tim Burgess Software Engineer - Coral Reef Watch Satellite Applications and Research - NESDIS National Oceanic and

Re: [Numpy-discussion] subdivide array

2010-11-30 Thread Whitcomb, Mr. Tim
terp to do nearest-neighbor interpolation (by setting order=0). It defaults to order=1, which is bilinear interpolation, which will destroy the binary nature of your data (as you perhaps noticed). Tim ___ NumPy-Discussion mailing list NumPy-Discussion@sci

Re: [Numpy-discussion] ANN: Numpy runs on Python 3

2010-07-10 Thread Tim Leslie
implementation notes you've got there would be a useful resource for other people looking to make the 2->3 transition. Just my 2c, many thanks as always to the people putting in all the hard work to make numpy happen! Tim > -- > Pauli Virtanen > >

Re: [Numpy-discussion] printing structured arrays

2010-03-09 Thread Tim Michelsen
>> Is this worth to go into the official docs? >> The page http://docs.scipy.org/doc/numpy/user/basics.rec.html is quite >> sparse... >> >> I still wonder why there is not a quick function for such a view / >> reshape conversion. > > > Thanks, the docs for working with arrays with structured dtyp

Re: [Numpy-discussion] printing structured arrays

2010-03-09 Thread Tim Michelsen
josef.p...@gmail.com schrieb: > On Mon, Mar 8, 2010 at 5:50 PM, Tim Michelsen > wrote: >> Hello, >> thanks to all who responded and have their input here. >> >> I added a little code snippet to show the view and reshape: >> >> http://www.scipy.org/Cookbo

Re: [Numpy-discussion] printing structured arrays

2010-03-09 Thread Tim Michelsen
>> I still wonder why there is not a quick function for such a view / >> reshape conversion. > > Because it is difficult (impossible?) to do in the general case. .view() > really isn't that bad, in fact, it remarkably powerful and flexible! I would not drop .view() but rather add a convenience fu

Re: [Numpy-discussion] printing structured arrays

2010-03-09 Thread Tim Michelsen
Hello, thanks to all who responded and have their input here. I added a little code snippet to show the view and reshape: http://www.scipy.org/Cookbook/Recarray What do you think? Is this worth to go into the official docs? The page http://docs.scipy.org/doc/numpy/user/basics.rec.html is quite s

Re: [Numpy-discussion] printing structured arrays

2010-03-08 Thread Tim Michelsen
Hello, I am also looking into the convertsion from strcutured arrays to ndarray. > I've just started playing with numpy and have noticed that when printing > a structured array that the output is not nicely formatted. Is there a > way to make the formatting look the same as it does for an unstruct

[Numpy-discussion] numpy1.4 dtype issues: scipy.stats & pytables

2010-01-11 Thread Tim Michelsen
Hello, I experienced the following issue with numpy 1.4: scipy.stats: Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32 import scipy.stats as st Traceback (most recent call last): File "", line 1, in File "C:\Python26\lib\site-packages\scipy\stats\__init

Re: [Numpy-discussion] Numpy savetxt: change decimal separator

2009-09-24 Thread Tim Michelsen
>> And another question I import this file to excel, is there also a >> possiblity to create a headline for each column, that the file looks >> like the following example: >> >> average; standard deviation; maximum distance; sum of distances >> 0,26565; 0,65565; 2,353535; 25, 5656 I was fid

[Numpy-discussion] current stautus of numpy -> Excel

2009-09-23 Thread Tim Michelsen
FYI: Here is a summary of how one can 1) write numpy arrays to Excel 2) interact with numpy/scipy/... from Excel http://groups.google.com/group/python-excel/msg/3881b7e7ae210cc7 Best regards, Timmie ___ NumPy-Discussion mailing list NumPy-Discussion@

Re: [Numpy-discussion] online Doc Editor [Re: `missing` argument in genfromtxt only a string?]

2009-09-15 Thread Tim Michelsen
> My bad, sorry. I already always forget to check tickets on the trac > site for numpy/scipy, adding yet another site to check seems to be way > too much for my caffeine-affected memory. However, there should be an > option to allocate tickets to specific people, right ? And then I > should

Re: [Numpy-discussion] online Doc Editor [Re: `missing` argument in genfromtxt only a string?]

2009-09-15 Thread Tim Michelsen
> It already exists in the docs: > http://docs.scipy.org/numpy/docs/numpy.lib.io.genfromtxt/ > Did you mean you tried to edit this page? But cannot be found in here: http://docs.scipy.org/doc/numpy/reference/routines.io.html So it just needs to be added in http://docs.scipy.org/doc/numpy/_source

Re: [Numpy-discussion] `missing` argument in genfromtxt only a string?

2009-09-15 Thread Tim Michelsen
> I actually figured out a workaround with converters, since my missing > values are " "," "," " ie., irregular number of spaces and the > values aren't stripped of white spaces. I just define {# : lambda s: > float(s.strip() or 0)}, and I have a loop build all of the converters, > but then I h

Re: [Numpy-discussion] `missing` argument in genfromtxt only a string?

2009-09-15 Thread Tim Michelsen
> Check the archives of the mailing list, there's an example using > dateutil.parser that may be just what you need. How is this dateutil.parser used in timeseries? Can it not be used to make the dateconverter obsolte for the most simple cases? ___ Nu

[Numpy-discussion] online Doc Editor [Re: `missing` argument in genfromtxt only a string?]

2009-09-15 Thread Tim Michelsen
> I just wanted to point out that there is an easy way of making a > difference, and making sure that the docstrings get fixed (which is > indeed very important). If you go to http://docs.scipy.org/ and register, > send your login name on this mailing list, we will add you to the list of > editors,

Re: [Numpy-discussion] help creating a reversed cumulative histogram

2009-09-03 Thread Tim Michelsen
>> Again, would a function for the >> "empirical inverse survival function" qualify for the >> inclusion into numpy or scipy? > > Sorry, I'm too distracted, correcting myself a second time > "this should *not* have inverse in it, using inverse was a cut and paste > error" > it's empirical survi

Re: [Numpy-discussion] help creating a reversed cumulative histogram

2009-09-03 Thread Tim Michelsen
> My first stop is usually wikipedia: [...] Thanks. So I I'known that I have to call the beast a "empirical inverse survival function", Robert would also have foundit easier to help. Anyway, step by step... > In the case of the weight of pigs, it would be to cumulative weight of > all pigs with

Re: [Numpy-discussion] help creating a reversed cumulative histogram

2009-09-03 Thread Tim Michelsen
> Hello, I have checked the snippets you proposed. It does what I wanted to achieve. Obviously, I had to substract the values as Robert demonstrated. This could also be perceived from the figure I posted. I still have see how I can optimise the code (c.f. below) or modify to be less complicated

Re: [Numpy-discussion] help creating a reversed cumulative histogram

2009-09-03 Thread Tim Michelsen
> >>> Okay. That is completely different from what you've asked before. > > You are right. > > But it's soemtimes hard to decribe a desired and expected output in > > python terms and pseudocode. > > I still have to lern more numpy vocabs... > > Actually, I apologize. I meant to delete that line b

Re: [Numpy-discussion] help creating a reversed cumulative histogram

2009-09-02 Thread Tim Michelsen
Hello Robert and Josef, thanks for the quick answers! I really appreciate this. >>> I am trying to create a inverse cumulative histogram [3] which shall >>> look like [4] but with the higher values at the left. >> Okay. That is completely different from what you've asked before. You are right. But

[Numpy-discussion] help creating a reversed cumulative histogram

2009-09-02 Thread Tim Michelsen
Hello fellow numy users, I posted some questions on histograms recently [1, 2] but still couldn't find a solution. I am trying to create a inverse cumulative histogram [3] which shall look like [4] but with the higher values at the left. The classification shall follow this exemplary rule: cl

[Numpy-discussion] np.hist with masked values

2009-09-01 Thread Tim Michelsen
Hello, should creating a histogram with masked data be different that one cretated with unmasked data? Is np.hist tuned for work with historams? I R_project I would do: # Note: values is my dataset ### masking zeros values_mask=ifelse(values==0, NA, (values)) # http://stat.ethz.ch/R-manual/R-pa

Re: [Numpy-discussion] genfromtext advice

2009-09-01 Thread Tim Michelsen
> But I completely agree with you, genfromtxt could print out > the line number and the actual line giving problems. Here we go: http://projects.scipy.org/numpy/ticket/1212 ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scip

Re: [Numpy-discussion] genfromtext advice

2009-09-01 Thread Tim Michelsen
> $ awk -F '|' '{if(NF != 12) print NR;}' /tmp/pp.txt > and besides the first 23 lines and the last 3 lines of the file, > also the following have a number of '|' different from 11: > 1635 > 2851 > 5538 > i.e. BIKIN, BENGUERIR and TERESINA AIRPORT. Looks lika some bash magic. I will try to transla

Re: [Numpy-discussion] genfromtext advice

2009-09-01 Thread Tim Michelsen
> Mmh, perhaps. Thanks for the quick reply. > I'll try to see what I can do. Usually, this message > shows up when one of the lines you have read doesn't have the same > number of columns as the others. Could we add this error to the docstring? As I suggested, It would be helpful to get the l

[Numpy-discussion] genfromtext advice

2009-09-01 Thread Tim Michelsen
Hello, I tried to load a ASCII table into a string array. Unfortunately, this table has some empty chells Here it is: http://www.ncdc.noaa.gov/oa/climate/rcsg/cdrom/ismcs/alphanum.html After having converted this into a text file I tried this: $ np.genfromtxt('alphanum_to-text.txt', dtype=np.str

Re: [Numpy-discussion] histogram: sum up values in each bin

2009-08-27 Thread Tim Michelsen
> Tim, do you mean, that you want to apply other functions, e.g. mean or > variance, to the original values but calculated per bin? Sorry that I forgot to add this. Shame. I would like to apply these mathematical functions on the original values stacked in the respective bins. For in

[Numpy-discussion] histogram: sum up values in each bin

2009-08-27 Thread Tim Michelsen
Hello, I need some advice on histograms. If I interpret the documentation [1, 2] for numpy.histogram correctly, the result of the function is a count of the occurences sorted into each bin. (n, bins) = numpy.histogram(v, bins=50, normed=1) But how can I apply another function on these values stac

Re: [Numpy-discussion] [OFFTOPIC] Reference management for articles

2009-06-10 Thread Tim Michelsen
> http://bibdesk.sourceforge.net/ I use JabRef for quite some time. Very nice and cross-platform. Good interoperability with LyX. If you with MS or OOo, you'd go for Bibus. Best regards, Timmie ___ Numpy-discussion mailing list Numpy-discussion@scipy.

Re: [Numpy-discussion] MemoryError in numpy.test() on AIXinstallation

2009-04-28 Thread Whitcomb, Mr. Tim
ote to the system administrators to try and get this fixed in the installation. Thanks, Tim [w] ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] MemoryError in numpy.test() on AIXinstallation

2009-04-27 Thread Whitcomb, Mr. Tim
uot;/site/python-2.5.2/lib/python2.5/pickle.py", line 1370, in load return Unpickler(file).load() File "/site/python-2.5.2/lib/python2.5/pickle.py", line 858, in load dispatch[key](self) File "/site/python-2.5.2/lib/python2.5/pickle.py",

[Numpy-discussion] MemoryError in numpy.test() on AIX installation

2009-04-27 Thread Whitcomb, Mr. Tim
5 I'm new to AIX, Python, and Numpy so I'm trying to learn a lot very quickly. Any ideas for what could be causing this error? Any pointers on where I can look to get some more information to diagnose the problem? I'd be happy to provide any more data I can. Thanks, Tim [w] ___

Re: [Numpy-discussion] Registering numpy on Pypi

2009-04-05 Thread Tim Michelsen
to mention that I could not register the 1.3.0 release on pypi, > as I don't have rights to the numpy project. The release is tagged, so > it is just a matter of running python setup.py register for anyone with > corresponding privileges on pypi's numpy project, Sorry, I should have read here first

Re: [Numpy-discussion] Import NumPy in Self-defined function script

2009-02-23 Thread Tim
Hi, My Python is Python 2.5.2 (r252:60911, Oct  5 2008, 19:24:49) Here is the output: >>> print numpy >>> print numpy.__version__ 1.1.1 Are these compatible with each other? I just found the error goes away, after I restart my ubuntu 8.10. Thanks, -Tim --- On Sun, 2/22/09, S

[Numpy-discussion] Import NumPy in Self-defined function script

2009-02-22 Thread Tim
I think zeros belongs to Module numpy, and I import it in my function file "trainer.py". So I was wonering what's the mistake I am making?  Thanks for help! -Tim ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Ironclad 0.8 released

2009-01-29 Thread Tim Michelsen
Hello William, once again. I just noticed that Resolver One can only import data from Excel. In science, the common low level data exchange format is ASCII text like: CSV or tab separated. You may consider adding this. I did not find any installation instructions contained in the docs for the

Re: [Numpy-discussion] Ironclad 0.8 released

2009-01-29 Thread Tim Michelsen
Hello William, > * A few performance improvements. > * Over 900 NumPy tests now pass: in fact, almost all the tests from the > core, fft, lib, linalg, ma, oldnumeric and random subpackages. I have some questions here for the science interested. I hope that they are not too specific: * Can you a

Re: [Numpy-discussion] coding style: citations

2009-01-23 Thread Tim Michelsen
Hello Allan, Stefan and others, did you already come to a conclusion regarding this cite topic? Did you try to run the bibtext extension for Sphinx? If so, please update the documentation guidelines. Regards, Timmie ___ Numpy-discussion mailing list N

Re: [Numpy-discussion] Please don't use google code for hosting

2009-01-20 Thread Tim Michelsen
Hello, last year there has been a discussion on this on the OSGEO list about the same issue. You may check oggeo.discuss at Gmane or Nabble for it. Kind regards, Timmie ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy

Re: [Numpy-discussion] coding style: citations

2009-01-13 Thread Tim Michelsen
> If I understand, you are using bib4txt.py to do this? Yes, I use bib4txt.py. The extension just runs bib4txt.py over all documents to extract the citations. Then it creates the reference file. The bibtex file is also converted to ReSt using your tools. But since the bibstuff needs the citation

Re: [Numpy-discussion] coding style: citations

2009-01-13 Thread Tim Michelsen
Hello, I really like the discussion here. > Originally I was just pointing out a problem. > Proposing a good solution requires some discussion. > The problem has also changed because of a suggestion > that the docs should be usable for book compilation, > and I am very uncertain how that is conce

Re: [Numpy-discussion] Apply a function to an array elementwise

2008-12-04 Thread Tim Michelsen
>> I want to apply a function (myfunc which takes and returns a scalar) to each >> element in a multi-dimensioned array (data): >> >> I can do this: >> >> newdata = numpy.array([myfunc(d) for d in data.flat]).reshape(data.shape) >> >> But I'm wondering if there's a faster more numpy way. I've looke

Re: [Numpy-discussion] Reference guide updated

2008-07-22 Thread Tim Michelsen
> A new copy of the reference guide is now available at > > http://mentat.za.net/numpy/refguide/ Very nice. Will this be included in the main numpy distribution upon completion? Thanks and appreciation for efforts. Kind regards, Timmie ___ Numpy-disc

[Numpy-discussion] proposal: add a header and footer function to numpy.savetxt

2008-07-17 Thread Tim Michelsen
Hello, sometime scripts and programs create a lot of data output. For the programmer and also others not involved in the scripting but in the evaluation of the output it would be very nice the output files could be prepended with a file header describing what is written in the columns below and to

[Numpy-discussion] Tip: Backporting the latest numpy release in Ubuntu Hardy (8.04)

2008-07-07 Thread Tim Michelsen
Hello, due to fixed release cycles Ubuntu 8.04 still lacks the latest numpy 1.1. I succeeded backporting the package python-numpy from the upcoming release Intrepid 8.10 with the help of the automatic tool Prevu. Instructions can be found here: * https://wiki.ubuntu.com/Prevu * http://ubuntuforu

[Numpy-discussion] removing and replacing certain values in arrays

2008-07-07 Thread Tim Michelsen
Hello, how do I remove all rows (or column) from an array which contain a certain value or sting? some like: array.delte_row_from_array_wich_contains('March') array.delte_row_from_array_wich_contains(-333) Is there also possibility to replace all occurences of a certain value in a array by n

Re: [Numpy-discussion] Py3K

2008-04-16 Thread Tim Michelsen
> This looks like something that need to go on a list for numpy 1.2. Can you post a list of the specific problems that need to be addressed?Chuck Maybe this post can give some hints: All Things Pythonic Python 3000 and You by Guido van Rossum March 17, 2008 Summary I've posted the slides f

[Numpy-discussion] Scipy and Numpy at Nabble Forums

2008-04-07 Thread Tim Michelsen
Hello, I registered the Scipy and Numpy mailing lists at the Nabble Web Forums: Scipy http://www.nabble.com/Scipy-User-f33045.html Numpy http://www.nabble.com/Numpy-discussion-f33046.html I still have to import the old emails from the archives. Kind regards and happy communicating, Tim

[Numpy-discussion] loading data with gaps

2008-04-03 Thread Tim Michelsen
ple would be nice. * How to I convert maskedarray (my_masked_array) to a array without masked values? Thanks in advance for your help, Tim Michelsenholg ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] setting items in a matrix

2007-12-23 Thread Tim Michelsen
> To learn array basics: > http://pages.physics.cornell.edu/~myers/teaching/ComputationalMethods/python/arrays.html> > http://www.scipy.org/Numpy_Example_List#head-a8a8874581c2ebfc69a37ab513974a229ff3bfaa> > http://www.scipy.org/Numpy_Example_List#head-a261b8dd10bda6a5fc268fe4f4171acee2f83968> > ht

Re: [Numpy-discussion] getting numPy happening for sciPy

2007-07-24 Thread Tim Mortimer
Thanks for the responses, http://code.enthought.com/enstaller/ I'll probably skip this. Although it looks like a useful tool, the computer / Python 2.5 installation i'm "managing" isn't on the internet, so any synchronisation or what not probably won't be possible there. ( i think that's what

[Numpy-discussion] getting numPy happening for sciPy

2007-07-23 Thread Tim Mortimer
help or advice. Can't imaging i'll be having too much of a contribution to this community, but will be interested to see what sort of topics float through the NumPY world with thanks Tim - Adelaide, Australia. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Porting "IDL Astronomy User's Library" to numpy

2007-07-16 Thread Tim Leslie
of how successful it was. If you do hear back from him I'd be interested to know how successful this project is, as I'm always looking for reasons to convert users in my astronomy department from things like IDL on to python :-) Cheers, Tim Leslie Cheers. -- .~. Yannick COPIN

[Numpy-discussion] Adding a delete flag to make_svn_version_py() in distutils

2007-03-04 Thread Tim Leslie
s a flag which makes deleting this file optional (with delete=True being default). This makes the svn version magic work for us and shouldn't break any existing code for anyone, Is there any reason why this shouldn't go in? I'm happy to make the checkin once it gets the OK from someone.

Re: [Numpy-discussion] r3530 breaks nan_to_num for complex64 arrays

2007-02-04 Thread Tim Leslie
On 2/5/07, Tim Leslie <[EMAIL PROTECTED]> wrote: > Hi All, > > As of svn revision 3530 N.nan_to_num no longer works for arrays of > complex64. The actual error is raised in the signbit function, but I'm > not sure why this is failing. If someone has a quick fix for this

  1   2   >