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

Rebased #431: Default dt is 0#490

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
bnavigator merged 14 commits intopython-control:masterfrombnavigator:rebase-pr431
Dec 31, 2020

Conversation

bnavigator
Copy link
Contributor

Rebased version of#431. I had the updated tests already prepared in earlier versions of#438

bnavigatorand others added10 commitsDecember 31, 2020 00:34
…re that combines systems with different timebases
@coveralls
Copy link

coveralls commentedDec 31, 2020
edited
Loading

Coverage Status

Coverage increased (+0.3%) to 87.52% when pulling75f3aef on bnavigator:rebase-pr431 into6ed3f74 on python-control:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 87.005% when pullingadc8166 on bnavigator:rebase-pr431 intod66f4e4 on python-control:master.

@bnavigatorbnavigator changed the titleRebase pr431Rebased #431: default dt is 0Dec 31, 2020
@bnavigatorbnavigator changed the titleRebased #431: default dt is 0Rebased #431: Default dt is 0Dec 31, 2020
Copy link
Member

@murrayrmmurrayrm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I look through the changes and these look good to me.

@@ -260,8 +258,6 @@ def testAddition(self, tsys):
TransferFunction.__add__(tsys.siso_tf1c, tsys.siso_tf1d)
with pytest.raises(ValueError):
TransferFunction.__add__(tsys.siso_tf1d, tsys.siso_tf2d)
with pytest.raises(ValueError):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I assume these are removed because these tests are already performed above in eg ‘test_timenase_conversion’?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

They don't raise an error anymore. You had an equivalent change in#431.dt=0.1 anddt=True are compatible now.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I see, makes sense!

@@ -223,7 +223,7 @@ def __init__(self, *args, **kwargs):
# TODO: not sure this can ever happen since dt is always present
try:
dt = args[0].dt
exceptNameError: # pragma: no coverage
exceptAttributeError:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

🤙

Copy link
Contributor

@sawyerbfullersawyerbfuller left a comment
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Looks good to me!

@bnavigator
Copy link
ContributorAuthor

Added one more simple test in order to not uncover a line. The double dt resolver is documented behavior and thus should be checked.

@bnavigatorbnavigator merged commitd1502f4 intopython-control:masterDec 31, 2020
@bnavigatorbnavigator deleted the rebase-pr431 branchJanuary 5, 2021 20:13
@murrayrmmurrayrm added this to the0.9.0 milestoneMar 20, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@sawyerbfullersawyerbfullersawyerbfuller approved these changes

@murrayrmmurrayrmmurrayrm approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
0.9.0
4 participants
@bnavigator@coveralls@murrayrm@sawyerbfuller

[8]ページ先頭

©2009-2025 Movatter.jp