Run_python_file/code action - "stop_on_error" attribute?

Hi Chris,

Do you think it would be useful to have a “stop_on_error” attribute for the run_python_file/run_python_string actions?
I’d probably want to keep this turned on so the experiment would stop on exceptions in python.

Thanks,
Mark

Hi Mark,

Yes, that seems useful. I’ll add it.

Chris

Great - if you’re prioritizing stuff from us, this is probably the highest priority item since we don’t have a good workaround.

Mark

Hi Mark,

This is done and will be in tonight’s nightly build. The attribute is called “stop_on_failure”.

Chris

Great - thanks. Will test.
I can’t think of a case where I’d want stop_on_failure to be NO, so I’d argue for default YES. But perhaps others use it differently.

Mark

I can’t think of a case where I’d want stop_on_failure to be NO, so I’d argue for default YES.

The default is NO to maintain compatibility with existing experiments.

Chris