Experiment.as_final_page()#

Experiment.as_final_page(page)[source]#

Class decorator for adding a custom final page to the experiment.

Use this decorator, if you want to define a new final page with full access to all experiment hooks.

Notes

You do not need to define a name for the final page. The name will be set automatically to ‘_final_page’.

See also

final_page: The final page as a property.

Examples

exp = al.Experiment()

@exp.as_final_page
class Final(al.Page):

    def on_exp_access(self):
        self += al.Text("This is the final page.")