deprecate derivatives and error_components#337
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #337 +/- ##
==========================================
+ Coverage 87.15% 87.17% +0.01%
==========================================
Files 20 20
Lines 2017 2019 +2
==========================================
+ Hits 1758 1760 +2
Misses 259 259
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
CodSpeed Performance ReportMerging #337 will not alter performanceComparing Summary
|
|
This PR is ready for review |
|
@newville @wshanks @andrewgsavage this small PR is ready for review. These two attributes are being either removed or changed in 4.0 so we need to mark them as deprecated in a 3.x release. |
|
@newville @wshanks @andrewgsavage bump again, looking for feedback on the wording. If I don't hear anything in a week I'll probably move towards merging it myself. |
|
@jagerber48 sorry for the delay, this has a been a very busy time for me. I think this is fine, and agree the focus here should emphasize uncertainty propagation, and that the new design with In fact, I think the "implied function/property" or "action at a distance" of: in which |
Yeah, this behavior is highly undesirable. Another issue is that you can set |
…s_and_error_components
wshanks
left a comment
There was a problem hiding this comment.
stacklevel looks good to me. I do agree that this has been a long process and we should move forward.
I don't love the lack of a migration path for error_components (no easy way to update code so it works in v3 and v4) but we expect not too many people to be affected so we can just accept some disruption there.
|
@jagerber48 @wshanks Thanks - I agree all around. I have always found the integer I will just go for it and rebase and merge. Yay! |
@wshanks Fortunately the change is very easy to fix, just remove |
pre-commit run --all-fileswith no errors.
AffineScalarFunc.derivativespropert as deprecatedAffineScalarFunc.error_components()as deprecated and that it will be replaced with a propertyAffineScalarFunc.error_components.