keflavich / HiGal_SEDfitter

SED fitting tools for Herschel Hi-Gal data
2 stars 6 forks source link

name 'wl' is not defined #3

Closed xueyingtianhua closed 7 years ago

xueyingtianhua commented 7 years ago

I try to run the example code but the terminal showed there are something wrong." Traceback (most recent call last): File "test.py", line 27, in integral=True) File "/Users/~/anaconda/lib/python3.5/site-packages/higal_sedfitter/fit.py", line 175, in fit_modified_blackbody_tofiles outheader = fits.getheader(target_files[wl]) NameError: name 'wl' is not defined. I need some help.

keflavich commented 7 years ago

@xueyingtianhua this looks like a python3 namespace error. Could you see if the suggested change fixes the issue?