We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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:
Hello and thanks for reaching out.
Is data a file name or a Table object? Can you please post the full traceback?
data
Table
Sorry, something went wrong.
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 Table columns, it would look more like this:
https://synphot.readthedocs.io/en/latest/synphot/bandpass.html#arrays
thats great. i was going round in circles but the above works. thanks!
No branches or pull requests
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: