Remove or replace unhandled None default for filter curve name#118
Remove or replace unhandled None default for filter curve name#118
Conversation
In some cases, those Nones were properly handled, that's fine. In other cases, omitting `filter_curve` resulted in an unspecific, unhandled error from `Path`. Requiring that argument gives a much more useful error instead. In other cases, the `filter_curve` argument is preceded by other optional argument with meaningful defaults, so using "V" here seems to make sense.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #118 +/- ##
=======================================
Coverage 76.83% 76.83%
=======================================
Files 8 8
Lines 803 803
=======================================
Hits 617 617
Misses 186 186 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I'm not sure this change is correct. What does the So if the default of |
|
I don't know too much about ABmag (or STmag) either, so I'm not sure. In any case, leaving the default of |
|
Both of these functions use a |
I don't know whether that is correct either. But I think it makes sense that ABmagnitudes would still require some kind of reference spectrum (because there must be some kind of prior about the energy distribution); that would mean that if
Yes, we should understand what is going on. Because having a default that is nonsensical (not sure it is) might lead to hidden problems. Good luck; I won't stop you from merging this, because I also don't want to put in the time to investigate whether there is a better course of action. |
In some cases, those Nones were properly handled, that's fine.
In other cases, omitting
filter_curveresulted in an unspecific, unhandled error fromPath. Requiring that argument gives a much more useful error instead.In other cases, the
filter_curveargument is preceded by other optional argument with meaningful defaults, so using "V" here seems to make sense.