Skip to content
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

'IUE' keyword error #84

Open
petiay opened this issue Aug 17, 2021 · 2 comments
Open

'IUE' keyword error #84

petiay opened this issue Aug 17, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@petiay
Copy link

petiay commented Aug 17, 2021

When getting the model data, using AzV23 as an SMC star test, a KeyError results:

~/Documents/ext-science/measure_extinction/modeldata.py in __init__(self, modelfiles, path, band_names, spectra_names)
    117                 # initialize the spectra vectors
    118                 if self.fluxes[cspec] is None:
--> 119                     self.waves[cspec] = moddata.data[cspec].waves
    120                     self.fluxes[cspec] = np.zeros(
    121                         (self.n_models, len(moddata.data[cspec].fluxes))

KeyError: 'IUE'

@karllark, should the .dat file say "STIS = STIS_Data..." instead of "IUE = STIS_Data..."?

I only see spectra_names=["BAND", "STIS"] defined in modeldata.py.

@karllark
Copy link
Owner

Yeah, this is an issue I'm aware of. I haven't figured out a way around this yet, but UV data from STIS and IUE are currently interchangeable. So just change the dat files as you indicate "IUE = STIS_Data..." and it will work. The best solution is to generate both IUE and STIS model spectra. Will work on that. Keep this issue open so that we make sure to solve it the best way.

@karllark karllark added the bug Something isn't working label Aug 17, 2021
@petiay
Copy link
Author

petiay commented Aug 18, 2021

Sounds good - this is indeed what I ended up doing and it seemed to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants