-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set default value of stop_if(keep_output) to True. #1161
Comments
Sure. But if the output is not generated then SoS will know it and not complain at the end of the step? |
Yes but the point is that removing a file is an aggressive action that should not be done by default. |
But then the parameter name should be changed from a negative to a positive one, something like
instead of
because the consequence of the option is to remove |
sounds more appropriate. |
is used because |
The default value of
keep_output
of actionstop_if
is currently set toFalse
.Suppose users do not know this option at all and
keep_output=True
by default, the output file will be kept if it is already generated before thestop_if
call, and will not be available if it is not generated. There is no surprise.If the default is set to
False
, the output will not exist in both cases, which can be a surprise to users. So, from a less surprise point of view, this option should better be set it toFalse
by default.The text was updated successfully, but these errors were encountered: