Re: numpy problem (follow up)

2020-11-29 Thread Malcolm
Hi https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy also has a numpy wheel 1.19.4+vanilla‑cp39‑cp39‑win_amd64.whl "Vanilla is a minimal distribution, which does not include any optimized BLAS libray or C runtime DLLs." Have not tried this. cheers Malcolm On 30/11/2020 7:19 am, MRAB wrote

Re: numpy problem (follow up)

2020-11-29 Thread MRAB
On 2020-11-29 18:33, Dennis Lee Bieber wrote: On Sat, 28 Nov 2020 17:28:50 -0600, Larry Burford declaimed the following: when trying to run the tutorial program standardplot.py I get a msg that says my numpy won't pass a sanity check due to a problem in the Win runtime Wait for M

Re: numpy problem (follow up)

2020-11-28 Thread Malcolm
HI Just had the same problem. The solution that worked for me was ( pip uninstall numpy then pip install numpy==1.19.3 The latest update to windows has an error in the BLAS libray causing the error. its a known problem. hope this helps Malcolm On 29/11/2020 10:28 am, Larry Burford wro

Re: numpy problem

2016-05-23 Thread Michael Selik
On Mon, May 23, 2016 at 9:12 AM wrote: > > On 23 mei 2016, at 14:19, Peter Otten <__pete...@web.de> wrote: > > li...@onemanifest.net wrote: > > > >> I've got a 2D array > >> And an array of indexes that for shows which row to keep for each column > >> of values: > >> > >> keep = np.array([2, 3, 1

Re: numpy problem

2016-05-23 Thread lists
> > On 23 mei 2016, at 14:19, Peter Otten <__pete...@web.de> wrote: > > li...@onemanifest.net wrote: > >> I've got a 2D array with values: >> >> values = np.array( >> [[ 20, 38, 4, 45, 65], >> [ 81, 44, 38, 57, 92], >> [ 92, 41, 16, 77, 44], >> [ 53, 62, 9, 75, 12], >> [ 58, 2, 60, 100,

Re: numpy problem

2016-05-23 Thread Peter Otten
li...@onemanifest.net wrote: > I've got a 2D array with values: > > values = np.array( > [[ 20, 38, 4, 45, 65], > [ 81, 44, 38, 57, 92], > [ 92, 41, 16, 77, 44], > [ 53, 62, 9, 75, 12], > [ 58, 2, 60, 100, 29], > [ 63, 15, 48, 43, 71], > [ 80, 97, 87, 64, 60], > [ 16, 16, 70, 88,

Re: Numpy problem: Arrays in a list of dictionaries

2007-04-23 Thread Robert Kern
ZMY wrote: > Dear Robert, > > So how should I do this? I tried > > d1 = {1: array([2, 3, 4]).copy(), 2: ''} > l1 = [] > for i in range(3): l1.append(d1.copy()) > > and it still doesn't work. Of course it doesn't, for the same reason that your first attempt didn't work either. You've

Re: Numpy problem: Arrays in a list of dictionaries

2007-04-23 Thread ZMY
Dear Robert, So how should I do this? I tried d1 = {1: array([2, 3, 4]).copy(), 2: ''} l1 = [] for i in range(3): l1.append(d1.copy()) and it still doesn't work. I think my problem is: how to create a new array every time I append it to the list... Thanks in advance, - ZMY On

Re: Numpy problem: Arrays in a list of dictionaries

2007-04-17 Thread Robert Kern
ZMY wrote: > I am new to Numpy/Pylab, and I am trying to construct a list of > dictionaries with arrays as the items, for example: > dict = {1: array([2, 3, 4]), 2: ''} list1 = [] for i in range(3): list1.append(dict.copy()) > ... list1 > [{1: array([2, 3, 4]), 2: ''}, {1: arra