Re: [Numpy-discussion] savetxt -> gzip: nondeterministic because of time stamp

2021-04-14 Thread Derek Homeier
On 15 Apr 2021, at 12:39 am, Robert Kern wrote: > > On Wed, Apr 14, 2021 at 6:16 PM Andrew Nelson wrote: > On Thu, 15 Apr 2021 at 07:15, Robert Kern wrote: > On Wed, Apr 14, 2021 at 4:37 PM Joachim Wuttke wrote: > Regarding numpy, I'd propose a bolder measure: > To let savetxt(fname, X, ...) s

Re: [Numpy-discussion] savetxt -> gzip: nondeterministic because of time stamp

2021-04-14 Thread Derek Homeier
On 14 Apr 2021, at 11:15 pm, Robert Kern wrote: > > On Wed, Apr 14, 2021 at 4:37 PM Joachim Wuttke wrote: > Regarding numpy, I'd propose a bolder measure: > To let savetxt(fname, X, ...) store exactly the same information in > compressed and uncompressed files, always invoke gzip with mtime = 0.

Re: [Numpy-discussion] the NumPy paper is out!

2020-09-17 Thread Derek Homeier
I did not want to put any more load on the list, but let me just report that this news has got 177 likes within 24 hours in the Python users in Astronomy Facebook group, which I think sets a new record (not the 10 k likes on Twitter, but that’s a different audience ;-). Congratulations everyone

Re: [Numpy-discussion] (no subject)

2020-06-03 Thread Derek Homeier
On 2 Jun 2020, at 11:15 pm, Charles R Harris wrote: > >> Also, I had expected the sdist to be the .tar.gz format, I can't find it >> back but IIRC that's what we decided in the past. It's smaller, and it's >> what pretty much all other projects do. > > NumPy has always used zip since PyPI limi

Re: [Numpy-discussion] Disallow Accelerate as a LAPACK backend for NumPy

2019-11-12 Thread Derek Homeier
On 12 Nov 2019, at 3:27 am, Ian Henriksen wrote: > > Extra data point here: SciPy already dropped support for Accelerate as of > version 1.2.0. > > Best, > > Ian Henriksen > > > On Mon, Nov 11, 2019 at 6:40 PM Matti Picus wrote: > Apple has dropped support for Accelerate. It has bugs that

Re: [Numpy-discussion] Np.genfromtxt Problem

2019-10-04 Thread Derek Homeier
On 5 Oct 2019, at 12:15 am, Andras Deak wrote: > > On Fri, Oct 4, 2019 at 7:31 PM Stephen P. Molnar > wrote: >> >> >> I have a snippet of code >> >> #!/usr/bin/env python3 >> # -*- coding: utf-8 -*- >> """ >> >> Created on Tue Sep 24 07:51:11 2019 >> >> """ >> import numpy as np >> >> fil

Re: [Numpy-discussion] converting a C bytes array to two dimensional numpy array

2019-07-16 Thread Derek Homeier
On 16 Jul 2019, at 9:30 am, Omry Levy wrote: > > I have a question, regarding conversion of C (unsigned char *) buffer to a > two dimensional numpy array > > this is what i am doing: > 1) I get a C network buffer of unsigned char * let's call it the source > buffer > the size of the source bu

Re: [Numpy-discussion] Need help to install Numpy 1.11.2, getting setuptool error

2018-12-05 Thread Derek Homeier
On 5 Dec 2018, at 5:21 pm, William James wrote: > > I am getting an setuptool error when trying to instal NumPy 1.11.2 on Python > 2.6. > > I there a way to download the setuptools to complete the installation? Assuming you are stuck with Python 2.6, there is an archive on https://pypi.org/p

Re: [Numpy-discussion] array - dimension size of 1-D and 2-D examples

2017-12-30 Thread Derek Homeier
On 30 Dec 2017, at 5:38 pm, Vinodhini Balusamy wrote: > > Just one more question from the details you have provided which from my > understanding strongly seems to be Design > [DEREK] You cannot create a regular 2-dimensional integer array from one row > of length 3 >> and a second one of len

Re: [Numpy-discussion] array - dimension size of 1-D and 2-D examples

2017-12-30 Thread Derek Homeier
On 30 Dec 2017, at 11:37 am, Vinodhini Balusamy wrote: > > Case 2: > >>> > >>> x12 = np.array([[1,2,3],[]]) > >>> x12.ndim > 1 > >>> print(x12) > [list([1, 2, 3]) list([])] > >>> >In case 2, I am trying to understand why it becomes 1 dimentional ?!?! > > > Case 3: > >>> > >>> x12 = np.ar

Re: [Numpy-discussion] Numpy wheels, openBLAS and threading

2017-09-28 Thread Derek Homeier
On 28 Sep 2017, at 3:37 pm, Max Linke wrote: > > os.environ can be used to change environment variables from within > python. > > https://docs.python.org/2/library/os.html#os.environ > > I do not know when openBLAS is reading the environment variables though. > Changing a value while your pytho

Re: [Numpy-discussion] record data previous to Numpy use

2017-07-07 Thread Derek Homeier
On 07 Jul 2017, at 4:24 PM, paul.carr...@free.fr wrote: > > ps : I'd like to use the following code that is much more familiar for me :-) > > COMP_list = np.asarray(COMP_list, dtype = np.float64) > i = np.arange(1,NumberOfRecords,2) > COMP_list = np.delete(COMP_list,i) > Not sure about the back

Re: [Numpy-discussion] record data previous to Numpy use

2017-07-07 Thread Derek Homeier
On 7 Jul 2017, at 1:59 am, Chris Barker wrote: > > On Thu, Jul 6, 2017 at 10:55 AM, wrote: > It's is just a reflexion, but for huge files one solution might be to > split/write/build first the array in a dedicated file (2x o(n) iterations - > one to identify the blocks size - additional one t

Re: [Numpy-discussion] record data previous to Numpy use

2017-07-05 Thread Derek Homeier
Hi Paul, > ascii file is an input format (and the only one I can deal with) > > HDF5 one might be an export one (it's one of the options) in order to speed > up the post-processing stage > > > > Paul > > > > > > Le 2017-07-05 20:19, Thomas Caswell a écrit : > >> Are you tied to ASCII fi

Re: [Numpy-discussion] How to concatenate 2 recarrays into a single recarray

2017-05-11 Thread Derek Homeier
On 11 May 2017, at 8:52 pm, Isaac Gerg wrote: > > Looking at the code, i think merge and stack take in ndarrays, not recarrays > is that correct? It should accept either; however if your a and b are two recarrays with all uniquely named columns to get the 10-column recarray in your original exa