Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
jdcpni committed Nov 26, 2024
1 parent 57eb5af commit 3012af2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psyneulink/core/compositions/composition.py
Original file line number Diff line number Diff line change
Expand Up @@ -4641,7 +4641,7 @@ def _add_required_node_role(self, node, role, context=None):
raise CompositionError('Invalid NodeRole: {0}'.format(role))

# Disallow assignment of NodeRoles by user that are not programmitically modifiable:
# FIX 4/25/20 [JDC]: CHECK IF ROLE OR EQUIVALENT STATUS HAS ALREADY BEEN ASSIGNED AND, IF SO, ISSUE WARNING
# FIX 4/25/20 [JDC] - CHECK IF ROLE OR EQUIVALENT STATUS HAS ALREADY BEEN ASSIGNED AND, IF SO, ISSUE WARNING
if context.source == ContextFlags.COMMAND_LINE:
if role in {NodeRole.CONTROL_OBJECTIVE, NodeRole.CONTROLLER_OBJECTIVE} and not node.control_mechanism:
warnings.warn(f"{role} should be assigned with caution to {self.name}. "
Expand Down

0 comments on commit 3012af2

Please sign in to comment.