nye17 / javelin

JAVELIN is now working under Python 3!
GNU General Public License v2.0
22 stars 9 forks source link

AttributeError: 'str' object has no attribute 'readlines' #16

Closed s0uthf1sh closed 1 year ago

s0uthf1sh commented 1 year ago

Thank you for your detailed JAVELIN help document.But when I follow your guide in "Usage-Running JAVELIN is Easy" and type c = get_data(["con.dat"]), an error occurs: anaconda3/envs/j/lib/python3.8/site-packages/javelin/lcio.py", line 128, in readlc_3c lightcurvelist.append([r.strip().split() for r in f.readlines()]) AttributeError: 'str' object has no attribute 'readlines'' Any help would be greatly appreciated. Thanks!

s0uthf1sh commented 1 year ago

Code c = get_data(["con.dat"]) may be repalced by c = get_data(["continuum.dat"])