itay livni
11/29/2019, 6:31 PMifelse
the False
branch is a pass
. calced_def_df = calced_def_df.copy()
Is that the right way to implement this logic? I am getting a UserWarning: You are making a copy of a task that has dependencies on or to other tasks in the active flow context. The copy will not retain those dependencies.
"You are making a copy of a task that has dependencies on or to other tasks "
Jeremiah
Jeremiah
itay livni
11/29/2019, 6:40 PMdf
the right way to mimic a pass in an ifelse ?
itay livni
11/30/2019, 1:04 AMChris White
itay livni
11/30/2019, 1:46 AMChris White
itay livni
11/30/2019, 1:54 AMChris White
itay livni
11/30/2019, 1:57 AMChris White
Chris White
Chris White
@task
def upstream_conditional_task():
# do stuff
if some_value is False:
raise signals.SKIP("Skip this task and any downstream tasks.")
Chris White
calced_def_df
task, and raise the signal thereitay livni
11/30/2019, 2:38 AMitay livni
11/30/2019, 2:38 AM