Re: [Numpy-discussion] ix_ and copies

2010-05-29 Thread Anne Archibald
On 29 May 2010 15:09, Robert Kern wrote: > On Sat, May 29, 2010 at 12:27, Keith Goodman wrote: >> Will making changes to arr2 never change arr1 if >> >> arr2 = arr1[np.ix_(*lists)] >> >> where lists is a list of (index) lists? np.ix_ returns a tuple of >> arrays so I'm guessing (and hoping) the a

Re: [Numpy-discussion] Finding Star Images on a Photo (Video chip) Plate?

2010-05-29 Thread Johann Cohen-Tanugi
I have used sextractor in the past : http://terapix.iap.fr/rubrique.php?id_rubrique=91/ Johann On 05/29/2010 08:29 PM, Wayne Watson wrote: > I managed to find some FORTRAN code that is relevant. Algorithms for CCD > Stellar Photometry,K. Mighell, Kitt Peak, >

Re: [Numpy-discussion] Finding Star Images on a Photo (Video chip) Plate?

2010-05-29 Thread Pauli Virtanen
Sat, 29 May 2010 11:29:56 -0700, Wayne Watson wrote: [clip] > SciPy. Hmm, this looks reasonable. . > Somehow I missed it and instead landed on > , which looks > fairly imposing. Those are tar and gzip files. T

Re: [Numpy-discussion] shuffle a slice

2010-05-29 Thread Keith Goodman
On Sat, May 29, 2010 at 11:45 AM, Robert Kern wrote: > On Sat, May 29, 2010 at 13:35, Keith Goodman wrote: >> np.random.shuffle: "Modify a sequence in-place by shuffling its contents." >> >> Matches doc string: >> a = np.arange(10) np.random.shuffle(a[:-1]) a >>   array([0, 7, 8, 4

Re: [Numpy-discussion] shuffle a slice

2010-05-29 Thread Robert Kern
On Sat, May 29, 2010 at 13:35, Keith Goodman wrote: > np.random.shuffle: "Modify a sequence in-place by shuffling its contents." > > Matches doc string: > >>> a = np.arange(10) >>> np.random.shuffle(a[:-1]) >>> a >   array([0, 7, 8, 4, 3, 6, 2, 1, 5, 9]) > > Doesn't match doc string: > >>> l = ran

Re: [Numpy-discussion] Finding Star Images on a Photo (Video chip) Plate?

2010-05-29 Thread Wayne Watson
On 5/28/2010 9:16 PM, David Goldsmith wrote: On Fri, May 28, 2010 at 8:31 PM, Anne Archibald wrote: On 28 May 2010 23:59, Wayne Watson wrote: > That opened a few avenues. After reading this, I went on a merry search with > Googl

[Numpy-discussion] shuffle a slice

2010-05-29 Thread Keith Goodman
np.random.shuffle: "Modify a sequence in-place by shuffling its contents." Matches doc string: >> a = np.arange(10) >> np.random.shuffle(a[:-1]) >> a array([0, 7, 8, 4, 3, 6, 2, 1, 5, 9]) Doesn't match doc string: >> l = range(10) >> np.random.shuffle(l[:-1]) >> l [0, 1, 2, 3, 4, 5, 6, 7,

Re: [Numpy-discussion] Finding Star Images on a Photo (Video chip) Plate?

2010-05-29 Thread Wayne Watson
I managed to find some FORTRAN code that is relevant. Algorithms for CCD Stellar Photometry,K. Mighell, Kitt Peak, . He discusses PSF and provides a few "starter" programs, centroid and peak determination. He discusses sky background (,

Re: [Numpy-discussion] ix_ and copies

2010-05-29 Thread Robert Kern
On Sat, May 29, 2010 at 12:27, Keith Goodman wrote: > Will making changes to arr2 never change arr1 if > > arr2 = arr1[np.ix_(*lists)] > > where lists is a list of (index) lists? np.ix_ returns a tuple of > arrays so I'm guessing (and hoping) the answer is yes. Correct. -- Robert Kern "I have

[Numpy-discussion] assert_almost_equal and inf

2010-05-29 Thread josef . pktd
I'm getting some test failures in my code with infs in numpy 1.4, nan treatment has been corrected in numpy.testing >>> assert_almost_equal(np.array([-5.23722324, -np.nan, -5.23722324]), >>> np.array([-5.23722324, -np.nan, -5.23722324])) but it seems that inf doesn't compare almost equal >>> a

[Numpy-discussion] ix_ and copies

2010-05-29 Thread Keith Goodman
Will making changes to arr2 never change arr1 if arr2 = arr1[np.ix_(*lists)] where lists is a list of (index) lists? np.ix_ returns a tuple of arrays so I'm guessing (and hoping) the answer is yes. ___ NumPy-Discussion mailing list NumPy-Discussion@scip