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

Add FunctionParameter and SharedParameter subclasses #1747

Merged

Conversation

kmantel
Copy link
Collaborator

@kmantel kmantel commented Sep 5, 2020

parameters: add FunctionParameter and SharedParameter subclasses

  • serve as a reference to a Parameter on one of the Component's attributes or
    other Parameters
  • values are shared between target Parameter and SharedParameter
  • when included in constructor, automatically passed on instantiation to
    relevant secondary Functions
    • other objects (e.g. RecurrentTransferMechanism.learning_mechanism) must still manually retrieve these parameter values as before

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Sep 5, 2020

This pull request introduces 2 alerts and fixes 1 when merging 51db48d into dce7a84 - view on LGTM.com

new alerts:

  • 1 for Unused import
  • 1 for __init__ method calls overridden method

fixed alerts:

  • 1 for Unused import

- serve as a reference to a Parameter on one of the Component's attributes or
other Parameters
- values are shared between target Parameter and SharedParameter
- when included in constructor, automatically passed on instantiation to the
relevant secondary Function

ControlSignal: make several parameters FunctionParameters

- needed to be included in this commit due to validation in
test_control_signal_intensity_cost_function
@kmantel kmantel force-pushed the feat/parameters/shared-parameters branch from 51db48d to 9b68fb6 Compare September 9, 2020 01:48
@lgtm-com
Copy link
Contributor

lgtm-com bot commented Sep 9, 2020

This pull request introduces 1 alert and fixes 1 when merging 9b68fb6 into dce7a84 - view on LGTM.com

new alerts:

  • 1 for __init__ method calls overridden method

fixed alerts:

  • 1 for Unused import

@kmantel kmantel merged commit b84c5fe into PrincetonUniversity:devel Sep 9, 2020
@kmantel kmantel deleted the feat/parameters/shared-parameters branch September 9, 2020 23:11
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.

1 participant