def load():
initialize_experiment_package(os.getcwd())<EOL>try:<EOL><INDENT>try:<EOL><INDENT>from dallinger_experiment import experiment<EOL><DEDENT>except ImportError:<EOL><INDENT>from dallinger_experiment import dallinger_experiment as experiment<EOL><DEDENT>classes = inspect.getmembers(experiment, inspect.isclass)<EOL>for name, c in classes:<EOL><INDENT>if "<STR_LIT>" in c.__bases__[<NUM_LIT:0>].__name__:<EOL><INDENT>return c<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise ImportError<EOL><DEDENT><DEDENT>except ImportError:<EOL><INDENT>logger.error("<STR_LIT>")<EOL>raise<EOL><DEDENT>
Load the active experiment.