Skip to content

Commit

Permalink
Scheduler: fix false add_condition replace warning
Browse files Browse the repository at this point in the history
Do not set _user_specified_conds in __init__,
because it will be set by add_condition_set in
graph_scheduler.Scheduler.__init__. This second call would result
in the condition replacement warning for any conditions passed in.
  • Loading branch information
kmantel committed Nov 12, 2024
1 parent f0a2e3b commit 87c0e88
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions psyneulink/core/scheduling/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ def __init__(

# TODO: consider integrating something like this into graph-scheduler?
self._user_specified_conds = graph_scheduler.ConditionSet()
if conditions is not None:
self._user_specified_conds.add_condition_set(copy.copy(conditions))
self._user_specified_termination_conds = copy.copy(termination_conds) if termination_conds is not None else {}

super().__init__(
Expand Down

0 comments on commit 87c0e88

Please sign in to comment.