[Mesa-users] Problems reading MESA output files
Lucero Uscanga
luscag at gmail.com
Tue Aug 27 18:15:34 EDT 2019
Dear all,
I am trying to do some exercises from the Stellar Structure and Evolution
Lab designed by Dr. Ehsan Moravveji. Although the files were written for a
previous version of MESA (mesa-r6794). I was able to run the code and got
some results with the latest version of MESA, following all the advices of
Josiah Schwab. Thank you!
These are the files in the LOGS folder:
history.data profile2.prof profile5.prof profiles.index
last-profile.prof profile3.prof profile6.prof
profile1.prof profile4.prof profile7.prof
I have problems to read the files.prof, I am using the python files
attached to this email to read and plot the results.
Luceros-MacBook-Air:exercise01 lucero.uscanga$ python mu.py
- mesa_gyre.read.read_multiple_mesa_files:
Traceback (most recent call last):
File "mu.py", line 10, in <module>
dic_prof = read.read_multiple_mesa_files([last_file], is_hist=False,
is_prof=True)[0]
File
"/Users/lucero.uscanga/Desktop/Desk/Clases/Stellar_Evolution/Lab_SSE/package/ivs_sse/exercises/exercise01/ivs_sse/read.py",
line 140, in read_multiple_mesa_files
header, data = read_mesa_ascii(files[0])
File
"/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"
I was trying to use mesa_reader but I didn't succeed.
Can someone give me an advise?
Thank you very much!
Best regards,
Lucero Uscanga.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20190827/59e10cdd/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mu.py
Type: text/x-python-script
Size: 772 bytes
Desc: not available
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20190827/59e10cdd/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: read.py
Type: text/x-python-script
Size: 17505 bytes
Desc: not available
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20190827/59e10cdd/attachment-0003.bin>
More information about the Mesa-users
mailing list