Re: [Numpy-discussion] np.genfromtxt StopIteration Error

2019-10-11 Thread Stephen P. Molnar
t.dG', data, fmt='%12.9f', header='${d}') print(data.dG) I am using the Spyder IDE which has a variable explorer which shows: filesList = ['C-VX3.log', '18-7.log', '14-7.log', '15-7.log'] fileList = ['C-VX3', '18-7', &#x

[Numpy-discussion] np.genfromtxt StopIteration Error

2019-10-11 Thread Stephen P. Molnar
ileList = ['C-VX3', '18-7', '14-7', '15-7'] so the lists that genfromtxt needs are being generated. Goggling 'numpy genfromtxt stopiteration error' does not seem to address this problem. At least, I didn't find plaything that I thought appl

[Numpy-discussion] Fwd: Re: Problem with np.savetxt

2019-10-10 Thread Stephen P. Molnar
Forwarded Message Subject:Re: [Numpy-discussion] Problem with np.savetxt Date: Thu, 10 Oct 2019 10:10:58 -0400 From: Stephen P. Molnar To: numpy-discussion@python.org I am slowly and not quickly stumbling forward, but at this point my degree of mental

Re: [Numpy-discussion] Problem with np.savetxt

2019-10-10 Thread Stephen P. Molnar
d as fname by genfromtxt. Although i have googled every combination of terms I can think of I am obviously missing something. As I have potentially hundreds of files to process, I would appreciate pointers towards a solution to the problem. Thanks in advance. On 10/08/2019 10:49 AM, Stephen P.

Re: [Numpy-discussion] Problem with np.savetxt

2019-10-08 Thread Stephen P. Molnar
Thanks for the replies. All is now well! I'm thankful that this list is so very patient with ROF's (retired old fools) struggling to learn a new programmng language. On 10/08/2019 10:42 AM, Fabrice Silva wrote: Le mardi 08 octobre 2019, Stephen P. Molnar a ?crit : data = np.genf

Re: [Numpy-discussion] Problem with np.savetxt

2019-10-08 Thread Stephen P. Molnar
uably having float data as floats is more natural anyway. On Tue, Oct 8, 2019 at 3:42 PM Andras Deak wrote: On Tue, Oct 8, 2019 at 3:17 PM Stephen P. Molnar wrote: I am embarrassed to be asking this question, but I have exhausted Google at this point . I have a number of identically formatted text

[Numpy-discussion] Problem with np.savetxt

2019-10-08 Thread Stephen P. Molnar
s/Miniconda3/lib/python3.7/site-packages/numpy/lib/npyio.py", line 1438, in savetxt % (str(X.dtype), format)) TypeError: Mismatch between array dtype ('('%16.9f %16.9f %16.9f %16.9f %16.9f %16.9f %16.9f %16.9f %16.9f %16.9f %16.9f %16.9f %16.9f %16.9f %16.9f %16.9f %16.9f %16

Re: [Numpy-discussion] Np.genfromtxt Problem

2019-10-05 Thread Stephen P. Molnar
On 10/04/2019 08:19 PM, Stefan van der Walt wrote: On Fri, Oct 4, 2019, at 10:31, Stephen P. Molnar wrote: data = np.genfromtxt(files, usecols=(3), dtype=None, skip_header=8, skip_footer=1, encoding=None) This seems like a good use case for `dask.dataframe.read_csv` [0]. St??fan [0] https

[Numpy-discussion] Np.genfromtxt Problem

2019-10-04 Thread Stephen P. Molnar
=1, encoding=None) File "/home/comp/Apps/Miniconda3/lib/python3.7/site-packages/numpy/lib/npyio.py", line 1762, in genfromtxt next(fhd) StopIteration I have tried very combination of search terms that I can think of in order to find an example of how to make this work withou