-
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
Improvements to application of clp_penalties (equal area) #801
Improvements to application of clp_penalties (equal area) #801
Conversation
Codecov Report
@@ Coverage Diff @@
## staging #801 +/- ##
=======================================
Coverage 84.4% 84.5%
=======================================
Files 75 75
Lines 4195 4200 +5
Branches 755 756 +1
=======================================
+ Hits 3544 3549 +5
Misses 518 518
Partials 133 133
Continue to review full report at Codecov.
|
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.
@jsnel i officially grant you code ownership of this function 😉
This fix reproduces the area penalty behavior that was in v0.4.1 with multiple datasets with the same spectral axis. For multiple datasets with different axes a more elaborate solution is required, see glotaran#800 for discussion.
52d1aaa
to
b309dd0
Compare
This pull request introduces 1 alert when merging b309dd0 into fe7d75c - view on LGTM.com new alerts:
|
Add reference to dataset_models to calculate_clp_penalties to calculate clp_penalties per dataset (axis)
b309dd0
to
b3e85b6
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Sourcery Code Quality Report❌ Merging this PR will decrease code quality in the affected files by 0.28%.
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! |
Benchmark is done. Checkout the benchmark result page. Benchmark diffParametrized benchmark signatures: BenchmarkOptimize.time_optimize(index_dependent, grouped, weight)
|
* Calculate clp_penalties per datasets like in v0.4.1 Add reference to dataset_models to calculate_clp_penalties to calculate clp_penalties per dataset (axis)
This fix reproduces the area penalty behavior that was in v0.4.1 when multiple datasets are involved.
The 'equal area penalty' is calculated on a per dataset basis.
Change summary
calculate_clp_penalties
the clp penalties on a per dataset levelChecklist
Closes issues
closes #800