diff --git a/Scripts/Scratch Pad.py b/Scripts/Scratch Pad.py index 61b98c24e5d..dedbc3b37f7 100644 --- a/Scripts/Scratch Pad.py +++ b/Scripts/Scratch Pad.py @@ -370,13 +370,12 @@ def __init__(self, error_value): # g = pnl.GatingMechanism(gating_signals=[{pnl.MECHANISM:m, # pnl.NAME:pnl.DECISION_VARIABLE}]) -my_mech = pnl.TransferMechanism(default_variable=[[0],[0]]) - -print(my_mech.input_states) - -print(my_mech.parameter_states) -print(my_mech.output_states) - +# my_mech = pnl.TransferMechanism(default_variable=[[0],[0]]) +# +# print(my_mech.input_states) +# +# print(my_mech.parameter_states) +# print(my_mech.output_states) # mech_A = pnl.TransferMechanism(input_states=['MY INPUT']) # print(mech_A.input_states) @@ -411,6 +410,27 @@ def __init__(self, error_value): # for projection in my_mech.output_states[0].efferents: # print(projection.name) +# FROM KEVIN: ------------------------------------- + +# WORKING: +# I = pnl.InputState(reference_value=[0,0,0]) +# pnl.TransferMechanism(input_states=[I]) + +# p = pnl.MappingProjection() +# T = pnl.TransferMechanism(input_states=[{pnl.VARIABLE: [0, 0, 0], pnl.PROJECTIONS:[p]}]) +# +# p = pnl.MappingProjection() +# T = pnl.TransferMechanism(default_variable=[0, 0], input_states=[p]) + +#------------- +# m = pnl.TransferMechanism() +# i = pnl.InputState(owner=m, reference_value=[0, 0, 0]) + +# m = pnl.TransferMechanism(default_variable=[0, 0, 0]) +# i = pnl.InputState(owner=m, reference_value=[0, 0, 0]) + + +# -------------------------------------------------------------------------------------------------- # My_Transfer_Mech_A = TransferMechanism( # function=Logistic( diff --git a/psyneulink/components/mechanisms/mechanism.py b/psyneulink/components/mechanisms/mechanism.py index 88df442a152..4153d7100dd 100644 --- a/psyneulink/components/mechanisms/mechanism.py +++ b/psyneulink/components/mechanisms/mechanism.py @@ -707,12 +707,18 @@ class `UserList