From 1cca7d63447c8c8c84a05be79f6cb4019642d40a Mon Sep 17 00:00:00 2001 From: jdcpni Date: Thu, 2 Dec 2021 21:08:52 -0500 Subject: [PATCH] - --- .../mechanisms/modulatory/control/controlmechanism.py | 1 - .../modulatory/control/optimizationcontrolmechanism.py | 2 +- psyneulink/core/compositions/composition.py | 3 --- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/psyneulink/core/components/mechanisms/modulatory/control/controlmechanism.py b/psyneulink/core/components/mechanisms/modulatory/control/controlmechanism.py index 8e5c1de0e05..8f8bd9621e5 100644 --- a/psyneulink/core/components/mechanisms/modulatory/control/controlmechanism.py +++ b/psyneulink/core/components/mechanisms/modulatory/control/controlmechanism.py @@ -1562,7 +1562,6 @@ def _instantiate_input_ports(self, input_ports=None, context=None): super()._instantiate_input_ports(context=context) self.outcome_input_ports.append(self.input_ports[OUTCOME]) - def _parse_monitor_for_control_input_ports(self, context): """Get outcome_input_port specification dictionaries for items specified in monitor_for_control. diff --git a/psyneulink/core/components/mechanisms/modulatory/control/optimizationcontrolmechanism.py b/psyneulink/core/components/mechanisms/modulatory/control/optimizationcontrolmechanism.py index 532daf6a76a..6f92f85f3a1 100644 --- a/psyneulink/core/components/mechanisms/modulatory/control/optimizationcontrolmechanism.py +++ b/psyneulink/core/components/mechanisms/modulatory/control/optimizationcontrolmechanism.py @@ -2141,4 +2141,4 @@ def add_state_features(self, features, context=None): if features: features = self._parse_state_feature_specs(features=features, context=context) - self.add_ports(InputPort, features) \ No newline at end of file + self.add_ports(InputPort, features) diff --git a/psyneulink/core/compositions/composition.py b/psyneulink/core/compositions/composition.py index affa1fd4c62..9ac602d5ebd 100644 --- a/psyneulink/core/compositions/composition.py +++ b/psyneulink/core/compositions/composition.py @@ -5384,9 +5384,6 @@ def _get_correct_sender(comp, shadowed_projection): def _get_sender_at_right_level(shadowed_proj): """Search back up hierarchy of nested Compositions for sender at same level as **input_port**""" if not isinstance(shadowed_proj.sender.owner, CompositionInterfaceMechanism): - # raise CompositionError(f"Attempt to shadow Projection to {shadowed_proj.receiver.owner.name} " - # f"(from {shadowed_proj.sender.owner.name}) that is an INTERNAL Node " - # f"in nested Composition of {self.name} is not currently supported.") raise CompositionError(f"Attempt to shadow the input(s) to a node " f"({shadowed_proj.receiver.owner.name}) in a nested Composition " f"(of {self.name}) is not currently supported.")