[Mesa-users] Problems reading MESA output files
Josiah Schwab
jwschwab at ucsc.edu
Tue Aug 27 18:28:52 EDT 2019
Hi Lucero,
> "/Users/lucero.uscanga/Desktop/Desk/Clases/Stellar_Evolution/Lab_SSE/package/ivs_sse/exercises/exercise01/ivs_sse/read.py",
> line 383, in read_mesa_ascii
>
> temp = np.array([header_vals], np.float64).T
>
> ValueError: could not convert string to float: "gfortran"
>
> Can someone give me an advise?
The python scripts you're using appear to assume that all quantities in
the headers are numbers. That is no longer true in r11701 which now
includes information about the compiler and the date of the MESA run.
The values are strings.
If you want to use this read.py, you will have to modify it not to
attempt to treat the header line as an array of floats.
You can see how something like py_mesa_reader treats this line at
https://github.com/wmwolf/py_mesa_reader/blob/master/mesa_reader/__init__.py#L179
Josiah
More information about the Mesa-users
mailing list