Skip to content

add capability to switch to legacy defaults #424

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

Merged
merged 3 commits into from
Jul 11, 2020
Merged

add capability to switch to legacy defaults #424

merged 3 commits into from
Jul 11, 2020

Conversation

sawyerbfuller
Copy link
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

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
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
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