Skip to content

Commit

Permalink
Set _output for undetermined to avoid excessive signature #229
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo Peng committed Jul 5, 2019
1 parent c7f294a commit 893dd4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sos_notebook/step_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ def __init__(self, step, mode='interactive'):
def init_input_output_vars(self):
# we keep these variables (which can be result of stepping through previous statements)
# if no input and/or output statement is defined
for key in ('step_input', '_depends', 'step_output', '_output', 'step_depends', '_depends'):
for key in ('step_input', '_depends', 'step_output', 'step_depends', '_depends'):
if key not in env.sos_dict:
env.sos_dict.set(key, sos_targets([]))
if '_output' not in env.sos_dict:
env.sos_dict.set('_output', sos_targets(_undetermined=True))
if any(x[0] == ':' and x[1] == 'input' for x in self.step.statements):
env.sos_dict.set('step_input', sos_targets([]))
env.sos_dict.set('_input', sos_targets([]))
Expand Down

0 comments on commit 893dd4d

Please sign in to comment.