Section.on_exp_access()#
- Section.on_exp_access()[source]#
Executed once, when the
ExperimentSessionbecomes available to the section.Warning
We are currently questioning the four section hooks on_enter, on_hand_over, on_resume, and on_leave. Everything that you may wish to accomplish with these hooks can be done in page hooks. The section versions have some caveats that make them a bit tougher to use correctly. So, for the meantime, please avoid these hooks and use page hooks instead. The attributes
Section.first_pageandSection.last_pagemay be useful for you in this regard.The
Section.on_exp_access()hook is not going anywhere, although we may at some point decide to introduce an alternative name for it in order to avoid confusion withPage.on_exp_access().See also
See “How to use hooks” for a how to on using hooks and an overview of available hooks.