Skip to content

add capability to switch to legacy defaults#424

Merged
murrayrm merged 3 commits intopython-control:masterfrom
sawyerbfuller:legacy-defaults
Jul 11, 2020
Merged

add capability to switch to legacy defaults#424
murrayrm merged 3 commits intopython-control:masterfrom
sawyerbfuller:legacy-defaults

Conversation

@sawyerbfuller
Copy link
Copy Markdown
Contributor

For example, config.use_legacy_defaults('0.8.3')

I added a few more defaults that might change in the future, but left them as they currently are for this PR:
* statesp.remove_useless_states (issue #244) (currently True; future is False? )
* statesp and xferfcn.default_dt (issue #422) (currently None, future is 0?)
* statesp.use_numpy_matrix (currently True, future is False)

@coveralls
Copy link
Copy Markdown

coveralls commented Jun 26, 2020

Coverage Status

Coverage increased (+0.02%) to 84.215% when pulling 68c7ea6 on sawyerbfuller:legacy-defaults into a9d869e on python-control:master.

@murrayrm
Copy link
Copy Markdown
Member

Changes look good. I think the docstrings for the various functions need to be updated to indicate the default values come from config variables. We should also add the new variables to the documentation in doc/.

…ng new config parameters default_dt and remove_useless_states
@murrayrm
Copy link
Copy Markdown
Member

Looks ready to merge. Will let sit for a few days in case others want to comment.

@murrayrm murrayrm merged commit ce3a231 into python-control:master Jul 11, 2020
@sawyerbfuller sawyerbfuller deleted the legacy-defaults branch July 15, 2020 04:25
@sawyerbfuller sawyerbfuller restored the legacy-defaults branch July 15, 2020 04:40
@sawyerbfuller sawyerbfuller deleted the legacy-defaults branch July 15, 2020 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants