You're trying to read a file with a name of literally `${d}.log`, which is
unlikely to be the name of your file. `${}` is bash syntax, not python
syntax.
This has drifted out of numpy territory and into "how to coordinate between
bash and python" territory - I'd perhaps recommend you ask this to a
I am slowly and not quickly stumbling forward, but at this point my
degree of mental entropy (confusion) is monumental.
This works:
import numpy as np
print('${d}')
data = np.genfromtxt("14-7.log", usecols=(1), skip_header=27,
skip_footer=1, encoding=None)
print(data)
np.savetxt('14-7.dG
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.genfromtxt("13-7
Le mardi 08 octobre 2019, Stephen P. Molnar a écrit :
> > data = np.genfromtxt("13-7.log", usecols=(1), dtype=None,
> > skip_header=27, skip_footer=1, encoding=None)print(data)[...]
> > ['-8.839713733' '-8.743377250' '-8.151051167' '-8.090452911' '-
> > 7.967494477' '-7.854890056' '-7.757417879' '
Many thanks or your kid replies.
I really appreciate your suggestions.
On 10/08/2019 09:44 AM, Andras Deak wrote:
PS. if you just want to specify the width of the fields you wouldn't
have to convert anything, because you can specify the size and
justification of a %s format. But arguably having
PS. if you just want to specify the width of the fields you wouldn't
have to convert anything, because you can specify the size and
justification of a %s format. But arguably 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, 2
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 files from which I want to
> extract data, as an example (hopefully, putting these in as quotes w
I am embarrassed to be asking this question, but I have exhausted Google
at this point .
I have a number of identically formatted text files from which I want to
extract data, as an example (hopefully, putting these in as quotes will
persevere the format):
==