Re: [Numpy-discussion] Need **working** code example of 2-D arrays
Where is the moderator? Please get these condescending, demeaning personal comments off of this list. I asked technical question. Now please send technical information only. Stéfan van der Walt wrote: I think you'll be hard pressed to find a more friendly, open and relaxed mailing list than this one. We're like having piña coladas while we type. That said, keep in mind that you are asking professionals to donate *their* valuable time to solve *your* problem. They gladly do so, but at the same time they try to be efficient; so if you sometimes receive a curt answer, it certainly wasn't meant to be rude. Many of us also sprinkle our responses with a liberal dose of Tongue In Cheek :) It looks like you received some good answers to your question, but let us know if your problems persist and we'll help you sort it out. Well said. 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 ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] Using 2-D arrays in Numeric Python (numpy)
Christopher Barker wrote: No matter how you slice it, you're going to need to learn a bit about computer programming in general, and python in particular, in order to be productive with numpy. WHERE IS THE MODERATOR? I deserve not to be insulted in front of the professional community with personal slurs such as this. My computer programming background includes thorough training in C at Bell Labs in the early days, and experience developing more than 65,000 lines of code. My software in C was used in the ATT telephone network, the Sprint network operations system, and the Silicon Graphics workstation. My assembly language DSP software is running in the Coast Guard communications system that coordinated the ship locations during Katrina. I got a large memory physical chemistry simulation to run at Princeton University, which enabled a chemistry lab to obtain results a year ahead of other universities. I have a long record of doing accurate, high quality work on algorithms and software and I would appreciate it if persons on this list would provide technical information only and stop making snide, superior personal comments and slours about a person's knowledge, background or ability. Also, I do not appreciate personal comments alleging that I am being overly sensitive. Where is the moderator during all of this? I asked professional, technical questions and I expect professional, technical answers. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] Need **working** code example of 2-D arrays
Your reply is inappropriate. it is not a correction. A request was made to stop posting mail that did not concern math and you have continued with your put downs. Stop it. Just stop it. Stop it right now. Linda Seltzer wrote: Where is the moderator? Please get these condescending, demeaning personal comments off of this list. I asked technical question. Now please send technical information only. The problem is, you did not just ask for technical information. You also accused people of being condescending and demeaning. But nobody was condescending or demeaning. As several people **politely** explained to you, you are wrong about that. If you stop making such accusations, you will stop receiving such corrections. There is no reason that list members should allow your accusations to go unchallenged. Stick to technical inquiries *only*, and you will get responses more to your taste. Cheers, Alan Isaac ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] Need **working** code example of 2-D arrays
Alan, Stop tuyrning this around. Stop referring to my request as an accusation and stop referring to your put-downs as a correction. On Mon, Oct 13, 2008 at 2:29 PM, Alan G Isaac [EMAIL PROTECTED] wrote: The problem is, you did not just ask for technical information. You also accused people of being condescending and demeaning. But nobody was condescending or demeaning. As several people **politely** explained to you, you are wrong about that. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] Need **working** code example of 2-D arrays
This ia another example of non-scientific attacking that does not belong on the list. As I mentioned earlier: Please keep all non-mathematical or non-computer science remarks off the list. Ordinarily I avoid becoming involved in such acrimony, but I take this single opportunity to state clearly that I find Linda Seltzer's behavior utterly rude and childish. Having been a member of this mailing list for over 6 years, I take exception to the pointless ranting and vitriolic comments of people, like Linda, who are using NumPy/SciPy, and demand immediate attention to their special problem, while hurling false accusations, and creating hard feelings among the comm- unity. NumPy and SciPy are software packages of the highest caliber that have been produced, supported, and nurtured by a community of -volunteers- at no cost to the users. In siutations like this, it may be helpful to review proper etiquette and the fun- damental purpose for mailing/support lists of open source tools. Two docum- ents that help reaffirm what this list is all about can be found below. Linda, I highly recommend you read the sections titled Dealing with rudeness and On not acting like a loser of the following document: http://www.catb.org/~esr/faqs/smart-questions.htmlhttp://www.catb.org/%7Eesr/faqs/smart-questions.html http://www.catb.org/~esr/faqs/smart-questions.html#keepcoolhttp://www.catb.org/%7Eesr/faqs/smart-questions.html#keepcool http://www.catb.org/~esr/faqs/smart-questions.html#not_losinghttp://www.catb.org/%7Eesr/faqs/smart-questions.html#not_losing You might also benefit from seeing things from the perspective of developers, who again, volunteer their precious time to developing and supporting open source software, so that you can do your work more efficiently and smartly. Give this a read over a cup of tea: http://math-atlas.sourceforge.net/faq.html#utone Perhaps when you calm down, and allow yourself to reflect upon this experience, you will realize how badly you've behaved to a group of professional, friendly people whose only desire is to support and nuture a great tool. I will say nothing more about this topic, and under no circumstances will I reply to future messages from Linda Seltzer. Daran ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
[Numpy-discussion] Need **working** code example of 2-D arrays
I received several pieces of advice concerning my previous question on the use of 2-D arrays. However, none of these pieces of advice resulted in code that works. The latest suggestion In numpy it's import numpy as npy a = npy.zeros((256,256)) produced this error message: NameError: global name 'npy' is not defined These are the import statements I used: import numpy as npy from numpy.oldnumeric import * I would appreciate it if someone could post a **working** example that creates a 2-D array of a large size, such as 256x256, with the initial elements all zero. This file shouold include the import statements and the lines of code to create the array. Please, no demeaning statements like you forgot a parenthesis or you were using someone else's code - just the lines of code for a file that actually *works.* ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
[Numpy-discussion] Data types in Numerical Python
Here is an example that works for any working numpy installation: import numpy as npy npy.zeros((256, 256)) This suggestion from David did work so far, and removing the other import line enabled the program to run. However, the data types the program used as defaults for variables has changed, and now I am getting error messages about data types. It seems that some variables are getting a default designation as floats. Before I installed numpy and needed 2-D arrays, the program was working with the default types, and I did not have to specify types. Is there a clear tutorial that describes a means to assign data types for each variable as in C, so that I don't obtain error messages about data types? Because I am simulating code for a DSP processor, the data types I need are unsigned bytes, unsigned 32-bit ints, and signed 32-bit ints. In some cases I can use unsigned and signed 16-bit ints. Also, what data types are valid for use with local operations such as exclusive or? ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] Need **working** code example of 2-D arrays
Those statements are not demeaning; lighten up. STOP IT. JUST STOP IT. STOP IT RIGHT NOW. Is there a moderator on the list to put a stop to these kinds of statements? I deserve to be treated with respect. I deserve to have my questions treated with respect. I deserve to receive technical information without personal attacks. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] Need **working** code example of 2-D arrays
L. Brooks of M.I.T. sent a professional e-mail with a code fragment that has worked. Friends, Those statements are not demeaning; lighten up. STOP IT. JUST STOP IT. STOP IT RIGHT NOW. Let us not go to this place, honestly, there is no need. Let's go back to the technical problem again. Linda, did you have time to try Alan's example? Best, Matthew ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] Installation of Numerical Python
I did not give permission to have the e-mail sent to the list. Please do not forawrd anyone's e-mail to a list without permission. Also, kindly do not send an entire list a message falsely stating that someone may be using code written by someone else. I have been reading various tutorials on the Internet, and they offer very incomplete information. Also, it is necessary to minimize time spent on installation and system administration and maximize time spent on math. Hi Linda, You only sent this to me BTW, I have copiedg this reply back to the list. From your original email, I have the impression you are using some existing code that someone else wrote: Traceback (most recent call last): File C:\Documents and Settings\music1\My Documents\Aerostream\aerostream\Reed Solomon\python-rscode\python-rscode\GF16genroot2a.py, line 18, in module import Numeric ImportError: No module named Numeric I suggest you try one of the following (in order of preferrence): I would start by emailing the author(s) and asking if they have any plans to move their code from Numeric to numpy. Otherwise, if you are reasonably experienced with python, you could try modifying their code to switch it from Numeric to numpy. Finally, what is probably the easiest answer in the short term, just install Numeric for Python 2.5 using the Windows installer I linked to. Peter P.S. You can have both Numeric and numpy installed at the same time - that won't cause a problem. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
[Numpy-discussion] Installation of Numerical Python
Hello Group Members: Can someone please answer a question about installing Numerical Python and getting it to work. I downloaded the files. They are in C:\Program Files\Python25 I have the python code and also the new file numpy-1.2.0-win32-superpack-python2.5 There is also a text file, numpy.wininst, and the last line of this file is: 200 File Copy: C:\Program Files\Python25\Lib\site-packages\numpy\add_newdocs.pyo I have these lines in my program: import Numeric from Numeric import * The problem is that when I run my python program in IDLE, I receive the following error message: Traceback (most recent call last): File C:\Documents and Settings\music1\My Documents\Aerostream\aerostream\Reed Solomon\python-rscode\python-rscode\GF16genroot2a.py, line 18, in module import Numeric ImportError: No module named Numeric I would be most appreciative of any clear, detailed instructions on where the Numeric Python files should be located and how to get this package to work. [EMAIL PROTECTED] ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
[Numpy-discussion] Using 2-D arrays in Numeric Python (numpy)
This worked: from numpy.oldnumeric import * Should I use from numpy import * (Does the first statement use outdated software?) I want to use 2-D arrays. Please advise me on the best way to do this. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] Using 2-D arrays in Numeric Python (numpy)
I would appreciate it if someone could answer my question without referring to subjects such as APIs and interfaces, since I am only concerned with a mathematical application at this time. In most tutorials, array examples are of the form: a = array([1, 2, 3], [4, 5, 6] ) The problem with this is that I have an array of size 256 x 256, and I have had applications with 3-d arrays of size 128x128x128. In video, you can arrays such as 640x480, etc. So filling in the value of each element is not practical. I wish that tutorials provided real world examples. I would appreciate it if someone could give me the actual statements needed to define and initialize a 2-D array of size NxN, where N can be any large number, where the initial values of the array elements are all zeros, but will be changed by the program. In Matlab, this is done as a = zeros(256,256). If I try this in python, it won't let the program overwrite the zeros. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] Using 2-D arrays in Numeric Python (numpy)
Thank you. It produced this error message: NameError: global name 'npy' is not defined In numpy it's import numpy as npy a = npy.zeros((256,256)) a[0,0] = 1.0 a[200,123] = -42.0 # etc... I think you were just missing the extra parentheses in the numpy version of zeros --bb ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion