discover_init module¶
- class discover_init.ExperimentInitializer(callback_func=None)¶
- Bases: - object- A class used to manage experiment-wide parameters. - Methods - set_callback(callback_func)- A function allowing the user to set their callback function at a time other than construction of the object. - set_callback(callback_func)¶
- A function allowing the user to set their callback function at a time other than construction of the object. - Parameters:
- callback_funcfunction
- The new callback function to be used at the end of the experiment. 
 
- Returns:
- None
 
 - Examples - >>> from rover_api.discover_init import ExperimentInitializer >>> def experiment_done_cb(): >>> print("Experiment is done!") >>> >>> inititalizer = ExperimentInitializer() >>> initializer.set_callback(experiment_done_cb)