def test_start_experiment(): """ DEPRECATED INTERFACE An alternative syntax to the with statement - less tidy but possibly better for notebooks and such because it avoids you having to indent all code in the experiment. """ with experiment_testing_context(): record = start_experiment('start_stop_test') experiment_test_function() end_current_experiment() assert_experiment_record_is_correct(record, show_figures=False)
def test_start_experiment(): """ DEPRECATED INTERFACE An alternative syntax to the with statement - less tidy but possibly better for notebooks and such because it avoids you having to indent all code in the experiment. """ delete_experiment_with_id('start_stop_test') with experiment_testing_context(): record = start_experiment('start_stop_test') experiment_test_function() end_current_experiment() assert_experiment_record_is_correct(record, show_figures=False)