Skip to content

Commit

Permalink
composition: Use input port default variable as reference
Browse files Browse the repository at this point in the history
  • Loading branch information
SamKG committed Oct 13, 2020
1 parent 472a2d0 commit fce48ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions psyneulink/core/compositions/composition.py
Original file line number Diff line number Diff line change
Expand Up @@ -7655,7 +7655,7 @@ def _validate_single_input(self, node, input):
"""
# Validate that a single input is properly formatted for a node.
_input = []
node_variable = [input_port.defaults.value for input_port in node.input_ports if not input_port.internal_only]
node_variable = [input_port.defaults.variable for input_port in node.input_ports if not input_port.internal_only]
match_type = self._input_matches_variable(input, node_variable)
if match_type == 'homogeneous':
# np.atleast_2d will catch any single-input ports specified without an outer list
Expand Down Expand Up @@ -7702,7 +7702,7 @@ def _validate_input_shapes(self, inputs):
if True in [i is None for i in node_input]:
incompatible_stimulus = stimulus[node_input.index(None)]
node_name = node.name
node_variable = [input_port.defaults.value for input_port in node.input_ports
node_variable = [input_port.defaults.variable for input_port in node.input_ports
if not input_port.internal_only]
err_msg = f"Input stimulus ({incompatible_stimulus}) for {node_name} is incompatible with " \
f"its external_input_values ({node_variable})."
Expand Down

0 comments on commit fce48ac

Please sign in to comment.