I noticed a small bug when generating NR files. Although the file is generated without error, when running run_conversion.py, I get the following TypeError:
Traceback (most recent call last):
File "./run_conversion.py", line 211, in <module>
mn.get_IC(MESA_file, masscut, in_file, out_file, mp,\
File ".../MESA2HYDRO-1.1.2-py3.8-linux-x86_64.egg/MESA2HYDRO/lib/mainlib.py", line 181, in get_IC
for i in range(len(N)):
TypeError: object of type 'numpy.float64' has no len()
loadtxt in line 167 of mainlib.py expects a column for N, but only receives a single line since converge_funcs.py doesn't create a newline.
All I did was add \n and that solved the error on my end!
I noticed a small bug when generating NR files. Although the file is generated without error, when running
run_conversion.py
, I get the followingTypeError
:loadtxt
in line 167 ofmainlib.py
expects a column for N, but only receives a single line sinceconverge_funcs.py
doesn't create a newline.All I did was add
\n
and that solved the error on my end!