Skip to content
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

Refactor power derivative functions #294

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

jagerber48
Copy link
Contributor

@jagerber48 jagerber48 commented Mar 14, 2025

  • Closes Clean up power derivative calculations #293
  • Executed pre-commit run --all-files with no errors
  • The change is fully covered by automated unit tests
  • Documented in docs/ as appropriate
  • Added an entry to the CHANGES file

uncertainties allows calculating x**y where one or both of x and y are UFloat objects. For this we need to calculate the x and y derivatives of x**y. This PR refactors the functions that calculate those derivatives to more explicitly and clearly handle non-typical cases. Moving those functions to the module level also allows these functions to be directly tested.

Copy link

codecov bot commented Mar 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.78%. Comparing base (b7be2e7) to head (581c798).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #294      +/-   ##
==========================================
+ Coverage   96.71%   96.78%   +0.07%     
==========================================
  Files          18       18              
  Lines        1886     1896      +10     
==========================================
+ Hits         1824     1835      +11     
+ Misses         62       61       -1     
Flag Coverage Δ
macos-latest-3.10 95.14% <100.00%> (+0.02%) ⬆️
macos-latest-3.11 95.20% <100.00%> (+0.07%) ⬆️
macos-latest-3.12 95.14% <100.00%> (+0.02%) ⬆️
macos-latest-3.8 95.13% <100.00%> (+0.02%) ⬆️
macos-latest-3.9 95.13% <100.00%> (+0.02%) ⬆️
no-numpy 74.73% <100.00%> (+0.13%) ⬆️
ubuntu-latest-3.10 95.14% <100.00%> (+0.02%) ⬆️
ubuntu-latest-3.11 95.14% <100.00%> (+0.02%) ⬆️
ubuntu-latest-3.12 95.14% <100.00%> (+0.02%) ⬆️
ubuntu-latest-3.8 95.13% <100.00%> (+0.02%) ⬆️
ubuntu-latest-3.9 95.13% <100.00%> (+0.02%) ⬆️
windows-latest-3.10 95.14% <100.00%> (+0.02%) ⬆️
windows-latest-3.11 95.14% <100.00%> (+0.02%) ⬆️
windows-latest-3.12 95.14% <100.00%> (+0.02%) ⬆️
windows-latest-3.8 95.13% <100.00%> (+0.02%) ⬆️
windows-latest-3.9 95.13% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link

codspeed-hq bot commented Mar 14, 2025

CodSpeed Performance Report

Merging #294 will not alter performance

Comparing jagerber48:pow_derivs_funcs (581c798) with master (b7be2e7)

Summary

✅ 5 untouched benchmarks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clean up power derivative calculations
1 participant