Skip to content
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

Configure Refactor 1 - States pull their units and shape from the rate_source. #398

Merged
merged 15 commits into from
Sep 23, 2020

Conversation

Kenneth-T-Moore
Copy link
Member

@Kenneth-T-Moore Kenneth-T-Moore commented Sep 21, 2020

Summary

This is part 1 for story 376.

  1. When calling add_state, the units and shape argument are no longer required, as dymos will pull that information from the rate_source when possible. You may still add units if you would like the driver or the timeseries to see a different unit than what is defined in the rate source.
    a. Exception 1: If the rate_source references a control that has no targets, then the shape is required.
    b. Exception 2: If the rate_source is another state, that state needs to be declared first. If the relationship is circular, then the shape is required.

Related Issues

Status

  • [ x] Ready for merge

Backwards incompatibilities

None

New Dependencies

None

@coveralls
Copy link

coveralls commented Sep 23, 2020

Coverage Status

Coverage increased (+0.04%) to 95.523% when pulling d22cafe on Kenneth-T-Moore:configure into 9108ede on OpenMDAO:master.

@robfalck robfalck merged commit 2243f2e into OpenMDAO:master Sep 23, 2020
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.

Use get_io_metadata during configure to pull information on constraints.
4 participants