[Numpy-discussion] Variable in an array name?

2011-01-12 Thread dstaley
Is it possible to use a variable in an array name? I am looping through a bunch of calculations, and need to have each array as a separate entity. I'm pretty new to python and numpy, so forgive my ignorance. I'm sure there is a simple answer, but I can't seem to find it. let's say i have a

Re: [Numpy-discussion] Variable in an array name?

2011-01-12 Thread Zachary Pincus
Is it possible to use a variable in an array name? I am looping through a bunch of calculations, and need to have each array as a separate entity. I'm pretty new to python and numpy, so forgive my ignorance. I'm sure there is a simple answer, but I can't seem to find it. let's say

Re: [Numpy-discussion] Variable in an array name?

2011-01-12 Thread dstaley
Zachary Pincus-2 wrote: Is it possible to use a variable in an array name? I am looping through a bunch of calculations, and need to have each array as a separate entity. I'm pretty new to python and numpy, so forgive my ignorance. I'm sure there is a simple answer, but I can't

Re: [Numpy-discussion] Variable in an array name?

2011-01-12 Thread Paul Anton Letnes
On 12. jan. 2011, at 16.40, dstaley wrote: Zachary Pincus-2 wrote: Is it possible to use a variable in an array name? I am looping through a bunch of calculations, and need to have each array as a separate entity. I'm pretty new to python and numpy, so forgive my ignorance. I'm

Re: [Numpy-discussion] Variable in an array name?

2011-01-12 Thread Zachary Pincus
Thank you very much for the prompt response. I have already done what you have suggested, but there are a few cases where I do need to have an array named with a variable (looping through large numbers of unrelated files and calculations that need to be dumped into different

Re: [Numpy-discussion] Variable in an array name?

2011-01-12 Thread josef . pktd
On Wed, Jan 12, 2011 at 11:05 AM, Zachary Pincus zachary.pin...@yale.edu wrote: Thank you very much for the prompt response.  I have already done what you have suggested, but there are a few cases where I do need to have an array named with a variable (looping through large numbers of