-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fix waves check #57
Fix waves check #57
Conversation
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #57 +/- ##
===========================================
+ Coverage 56.78% 77.23% +20.45%
===========================================
Files 8 8
Lines 789 795 +6
===========================================
+ Hits 448 614 +166
+ Misses 341 181 -160 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing!
Graag gedaan. I like the one-liners, but in the end I think this is also more clear. I still don't like it that we cannot just put the default in the function declaration.. One thing to note is that |
This is broken, because waves is a Quantity, and "Quantity truthiness is ambiguous, especially for logarithmic units and temperatures. Use explicit comparisons". In particular, the example in https://github.com/AstarVienna/ScopeSim_Templates/blob/main/scopesim_templates/calibration/calibration.py#L44 raises the quoted ValueError. Fixes https://github.com/AstarVienna/speXtra/pull/43/files#r1819593457