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

Refactor/output state/retire assign merge devel #687

Merged
merged 67 commits into from
Mar 2, 2018

Conversation

jdcpni
Copy link
Collaborator

@jdcpni jdcpni commented Mar 2, 2018

Refactoring of OutputState to support flexible assignment of its variable attribute.

• Mechanism
  - added _params_dict property that contains entries for all attributes allowed to be
    referenced by variable of OutputState
    [this may be inefficient as a way of accessing attribute values during execution]
  - _handle_arg_input_states(): refactoed to accomodate changes to OutputState (see below)

• OutputState
  - refactored to allow variable to be specified in terms of any (allowable) attributes
    of its owner Mechanism, including:
        variable property:  overrides super, and returns _parse_output_state_variable
        _parse_output_state_variable
        _parse_output_state_function
  - deprecated ASSIGN and INDEX:
    these now are assigned to function and (OWNER_VALUE, ) respectively
    (current version is fully backwardly compatible with ASSIGN, INDEX and CALCULATE)

• ControlSignal
  commented out variable property definition

• Function
  - UserDefinedFunction: fixed bug in which assignment of functions
    that do not recognize params or context args crashed

• Component
  - refactored variable-related methods to accomodate changes to OutputState
  - fixed bugs that failed to recognize assignment of methods as function attribute

jdcpni added 30 commits February 2, 2018 07:39
…Link into refactor/Projection/Context_devel

# Conflicts:
#	psyneulink/components/mechanisms/adaptive/control/controlmechanism.py
… and 'devel' of https://github.com/PrincetonUniversity/PsyNeuLink into clean_up/function_and_system/backprop_and_show_graph

# Conflicts:
#	psyneulink/components/functions/function.py
  replace calcuate/CACULATE with assign/ASSIGN
  replace calcuate/CACULATE with assign/ASSIGN
  replace calcuate/CACULATE with assign/ASSIGN
  added backward compatibility
  docstring: document replacement of calcuate/CACULATE with assign/ASSIGN
  - implemented assign that takes assign_params_dict as arg
  assign function now expects dict as argument - WORKING
…ue_based_version_input_state' of https://github.com/PrincetonUniversity/PsyNeuLink into feat/DDM/value_based_version_input_state

# Conflicts:
#	psyneulink/components/states/state.py
…ue_based_version_input_state' of https://github.com/PrincetonUniversity/PsyNeuLink into feat/DDM/value_based_version_input_state

# Conflicts:
#	psyneulink/components/states/state.py
This reverts commit 0f8a301
This reverts commit 0f8a301
This reverts commit 0f8a301
…able attribute.

• Mechanism
  - added _params_dict property that contains entries for all attributes allowed to be
    referenced by variable of OutputState
    [this may be inefficient as a way of accessing attribute values during execution]
  - _handle_arg_input_states(): refactoed to accomodate changes to OutputState (see below)

• OutputState
  - refactored to allow variable to be specified in terms of any (allowable) attributes
    of its owner Mechanism, including:
        variable property:  overrides super, and returns _parse_output_state_variable
        _parse_output_state_variable
        _parse_output_state_function
  - deprecated ASSIGN and INDEX:
    these now are assigned to function and (OWNER_VALUE, <INDEX>) respectively
    (current version is fully backwardly compatible with ASSIGN, INDEX and CALCULATE)

• ControlSignal
  commented out variable property definition

• Function
  - UserDefinedFunction: fixed bug in which assignment of functions
    that do not recognize params or context args crashed

• Component
  - refactored variable-related methods to accomodate changes to OutputState
  - fixed bugs that failed to recognize assignment of methods as function attribute
  docstring revs
  docstring revs
  docstring revs
  _instantiate_control_signals:  debugged OWNER_VALUE assignment
@KristenManning KristenManning merged commit 70c6992 into devel Mar 2, 2018
@jdcpni jdcpni deleted the refactor/output_state/retire_assign_merge_devel branch March 9, 2018 15:49
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.

2 participants