Fix a case conversion issue in accessing SpeXtra #135
Fix a case conversion issue in accessing SpeXtra #135JenniferKarr wants to merge 1 commit intomainfrom
Conversation
…peXtra models (e.g. irtf) have upper case names for the spectral stypes, which can't be accessed via the current code.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #135 +/- ##
=======================================
Coverage 74.25% 74.25%
=======================================
Files 30 30
Lines 1484 1484
=======================================
Hits 1102 1102
Misses 382 382 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Could you perhaps add a test for this to and then maybe assert that I'm asking because that I wouldn't know what to put on that line to trigger the problem. So I would myself not be able to add a test later. |
This does indeed fail on |
Yes, that was my experience too. Those other things are 'normal' behavior for speXtra (or problems, but unrelated to this PR). So I couldn't figure out how to test this. @JenniferKarr could you comment on how to test this? |
|
What is the status of this PR @JenniferKarr ? You didn't assign a reviewer, nevertheless both me and @teutoburg added some comments, so it is not clear to me who is waiting for who. |
remove a .lower() on the model name for stellar models. Some of the SpeXtra models (e.g. irtf) have upper case names for the spectral stypes, which can't be accessed via the current code.