Recent Releases of randomize-apps-otree
randomize-apps-otree - v0.1.0
First working version of this fix for randomization of apps in oTree >= 5.4.0
Added
- Support for Wait Pages: Participants will now wait on a wait page until
PLAYERS_PER_GROUPreach the wait page through different randomized apps. - Support for Mixed Randomization: Instead of fully randomizing all apps, users can now specify which apps to randomize by placing them between
begin_randomize_apps_otreeandend_randomize_apps_otree. - Improved Page Navigation Handling:
_increment_index_in_pageshas been overridden to ensure proper iteration through all pages, handling cases where the next app may appear earlier in oTreeโs internal page index. - New App Randomization Structure:
- Use
begin_randomize_apps_otreeandend_randomize_apps_otree, defining the range of apps to randomize.
- Use
- Example configurations to reflect the new randomization structure, including:
randomize_apps: Fully randomizes apps.randomize_apps_with_wait_page: Includes a wait page inside the randomized sequence.mix_randomize_apps: Partially randomizes only certain apps, keeping others fixed.
๐ How to Upgrade
- Update your
app_sequenceconfigurations to usebegin_randomize_apps_otreeandend_randomize_apps_otreeinstead ofrandomize-app-otree. - If using wait pages, ensure your app logic accounts for players reaching the wait page at different times.
๐ Notes
- There are five test apps:
test_app1,test_app2,test_app3,test_app4, andtest_app5. - To ensure compatibility, test your updated
app_sequencebefore deployment. - If you encounter issues, review how
_increment_index_in_pagesaffects page iteration.
Full Changelog: https://github.com/Socrats/randomize-apps-otree/commits/v0.1.0
- Python
Published by Socrats about 1 year ago