-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SpectralElement AttributeError: 'Table' object has no attribute 'lower' #402
Comments
Hello and thanks for reaching out. Is |
thanks for responding! I dont understand much of the deeper python language terms but this is where i insert the data file: data = Table.read('/Users/**/soft/stsci_python-2.12/pysynphot/data/generic/GTC_HIPERCAM.g_s_3.dat', format='ascii', names=('row','wave','flux_col')) so possibly an object. but could be wrong! many thanks for taking the trouble to reply. |
Does this work for you? gHiper = SpectralElement.from_file("/your/path/to/GTC_HIPERCAM.g_s_3.dat") |
If you must build from https://synphot.readthedocs.io/en/latest/synphot/bandpass.html#arrays |
thats great. i was going round in circles but the above works. thanks! |
Hi
I've got a file which contains a passband. Im trying to read it in as a SpectralElement but get this error:
gHiper = SpectralElement.from_file(data)
where data contains two cols, wave and flux_col
AttributeError: 'Table' object has no attribute 'lower'
any idea what 'lower' means?
many thanks
Gavin
The text was updated successfully, but these errors were encountered: