-
Notifications
You must be signed in to change notification settings - Fork 31
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
Refactor/ocm/state features all as input ports #2352
Merged
jdcpni
merged 361 commits into
devel
from
refactor/ocm/state_features_all_as_input_ports
Mar 21, 2022
Merged
Refactor/ocm/state features all as input ports #2352
jdcpni
merged 361 commits into
devel
from
refactor/ocm/state_features_all_as_input_ports
Mar 21, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- add_controller: few more minor mods; still passes all tests
- __init__: resrict specification to only one of control, modulatory_signals, or control_signals (synonyms)
…ections for ocm.state_input_ports
- _get_original_senders(): added support for nested composition needs to be checked for more than one level needs to be refactored to be recursive
- _update_state_input_ports_for_controller: fix invalid_state_features to allow input_CIM of nested comp in agent_rep
- _get_original_senders: made recursive
- add_controller and _get_nested_node_CIM_port: added support for forced assignment of NodeRole.OUTPUT for nodes specified in OCM.monitor_for_control, but referenced 'allow_probes' attribute still needs to be implemented
allow_probes fully implemented
- _update_shadow_projections(): fix handling of deep nesting
…Link into refactor/ocm/state_input_ports_PROBE
- state_feature_function -> state_feature_functions
- _validate_params: validate state_feature_functions - _update_state_input_ports_for_controller: implement assignment of state_feature_functions
…Link into refactor/ocm/state_features_all_as_input_ports
- allow single spec (None, array, tuple, or Components) that is assigned to all INPUT Node InputPorts - state_feature_default is assigned to all unspecified INPUT Node InputPorts (for a list that is shorter than the number, a dict or a set that has fewer, or any that are added to agent_rep after controller is initially constructed and added to Composition)
…Link into refactor/ocm/state_features_all_as_input_ports
- _state_feature_values_getter(): for numeric state_feature, return state_input_port.functio(numeric_value)
- test_ocm_state_feature_specs_and_warnings_and_errors() - added tests for single state_feature spec
…tring mods re: "external InputPort"
- test_state_features_in_nested_composition_as_agent_rep(): - add tests for single state_feature specs - add tests for INPUT Node with more than on InputPort
This PR causes the following changes to the html docs (ubuntu-latest-3.7-x64):
See CI logs for the full diff. |
This pull request introduces 1 alert when merging 42c3fca into 8fa3011 - view on LGTM.com new alerts:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
• optimizationcontrolmechanism.py:
• test_control.py: