Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Remove old pythons and leverage @ operator#679

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
murrayrm merged 9 commits intopython-control:masterfrombnavigator:remove-old-python
Dec 26, 2021

Conversation

bnavigator
Copy link
Contributor

We should finally let go of Python 2. It will allow us to use the matmul operator@ and make code more readable.

As NumPy has deprecated Python 3.6 support a while ago (NEP 29), Conda recently dropped it and it will also reach end-of-life in the mainline Python this month, let's also stop testing Python 3.6.

There is an important difference to consider when replacingnp.dot orndarray.dot with@:

  • Multiplication by scalars is not allowed, use* instead.
  • Stacks of matrices are broadcast together as if the matrices were elements, respecting the signature(n,k),(k,m)->(n,m):

@coveralls
Copy link

coveralls commentedDec 2, 2021
edited
Loading

Coverage Status

Coverage increased (+0.005%) to 92.721% when pullingde94123 on bnavigator:remove-old-python intoc2f6f8a on python-control:master.

@sawyerbfuller
Copy link
Contributor

I was really excited when python got the matrix mult operator. really cleans up the code. So it sounds reasonable to me if nobody can give a good reason to keep python 2 around.

@murrayrmmurrayrm merged commit4f681ab intopython-control:masterDec 26, 2021
@murrayrmmurrayrm added this to the0.9.1 milestoneDec 30, 2021
@bnavigatorbnavigator deleted the remove-old-python branchFebruary 18, 2024 20:30
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@sawyerbfullersawyerbfullersawyerbfuller approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
0.9.1
Development

Successfully merging this pull request may close these issues.

4 participants
@bnavigator@coveralls@sawyerbfuller@murrayrm

[8]ページ先頭

©2009-2025 Movatter.jp