Skip to content

Commit

Permalink
removed a brittle unit test dependency that is already tested elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
sawyerbfuller committed Jul 18, 2020
1 parent 7a9bcd4 commit aa6bf84
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion control/iosys.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

# Define module default parameter values
_iosys_defaults = {
'iosys.default_dt': 0}
'iosys.default_dt': None}

class InputOutputSystem(object):
"""A class for representing input/output systems.
Expand Down
2 changes: 1 addition & 1 deletion control/statesp.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
# Define module default parameter values
_statesp_defaults = {
'statesp.use_numpy_matrix': True,
'statesp.default_dt': 0,
'statesp.default_dt': None,
'statesp.remove_useless_states': True,
}

Expand Down
1 change: 0 additions & 1 deletion control/tests/xferfcn_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,6 @@ def test_minreal_3(self):
g = TransferFunction([1,1],[1,1]).minreal()
np.testing.assert_array_almost_equal(1.0, g.num[0][0])
np.testing.assert_array_almost_equal(1.0, g.den[0][0])
np.testing.assert_equal(0, g.dt)

def test_minreal_4(self):
"""Check minreal on discrete TFs."""
Expand Down
2 changes: 1 addition & 1 deletion control/xferfcn.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

# Define module default parameter values
_xferfcn_defaults = {
'xferfcn.default_dt': 0}
'xferfcn.default_dt': None}

class TransferFunction(LTI):

Expand Down

0 comments on commit aa6bf84

Please sign in to comment.