-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 DeprecationWarning: Attribute s is deprecated and will be removed… #2926
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2926 +/- ##
=============================================
- Coverage 88.134% 88.014% -0.120%
=============================================
Files 94 94
Lines 7408 7409 +1
Branches 1307 1307
=============================================
- Hits 6529 6521 -8
- Misses 592 598 +6
- Partials 287 290 +3 ☔ 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.
This should be conditional check so that we are backwards compat on all supported versions.
7ed8403
to
9ff3ba6
Compare
… in Python 3.14; use value instead The attribute check within the 'ode.py' script has been updated. Previously, it checked whether the event has an attribute 's', however, this has been modified to check for the 'value' attribute instead. This ensures the correct attribute is being checked for the ongoing processes.
Adjusted a condition in 'ode.py' to handle changes in sys.version_info from 3.12 onwards. This fix ensures compatibility with newer Python versions as system requirements are now checked before the execution of certain commands.
9ff3ba6
to
8ca200b
Compare
Thanks for the contribution. I went a slightly different route: #2959 |
… in Python 3.14; use value instead
The attribute check within the 'ode.py' script has been updated. Previously, it checked whether the event has an attribute 's', however, this has been modified to check for the 'value' attribute instead. This ensures the correct attribute is being checked for the ongoing processes.