-
Notifications
You must be signed in to change notification settings - Fork 18
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
🩹 Show validation problem if parameters are missing values (default: NaN) #1076
Conversation
Sourcery Code Quality Report❌ Merging this PR will decrease code quality in the affected files by 0.06%.
Here are some functions in these files that still need a tune-up:
Legend and ExplanationThe emojis denote the absolute quality of the code:
The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request. Please see our documentation here for details on how these metrics are calculated. We are actively working on this report - lots more documentation and extra metrics to come! Help us improve this quality report! |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Benchmark is done. Checkout the benchmark result page. Benchmark diff v0.5.1 vs. mainParametrized benchmark signatures: BenchmarkOptimize.time_optimize(index_dependent, grouped, weight)
Benchmark diff main vs. PRParametrized benchmark signatures: BenchmarkOptimize.time_optimize(index_dependent, grouped, weight)
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1076 +/- ##
=======================================
+ Coverage 87.1% 87.3% +0.1%
=======================================
Files 102 102
Lines 5381 5388 +7
Branches 995 997 +2
=======================================
+ Hits 4691 4704 +13
+ Misses 536 530 -6
Partials 154 154 ☔ 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.
Nice user experience improvement!
Good tests and thanks for beautifying the code here and there.
This change fixes false positive reporting of a
Model
with parameters orScheme
as valid when parameters are missing values and default tonp.nan
.One use case where a user would want missing parameters is in a teaching exercise where students have to fill in missing parameters.
The other use case would be that a user started editing the parameters file but didn't finish and forgot some values.
As a demo you can use this notebook.
Change summary
Checklist