inner_dispatch() in the new otree version

44 views
Skip to first unread message

Kate Hahn-Madole

unread,
Feb 28, 2022, 5:42:45 AM2/28/22
to oTree help & discussion
Hi all, 

We updated our otree version from 3.3.11 to 5.6.0 and now get an error with the randomization of the pages in our survey. We had been manipulating the inner_dispatch() function to achieve this (code attached below), but now when we run the code (only change is the new version) we get an error: Inner dispatch takes 1 position argument - 2 were given. Does this have something to do with the move away from Django in the new version? Any advice on how we can resolve this without just downgrading to the previous version? Happy to provide more details if necessary!

Best, 

Kate

inner_dispatch.JPG

Chris @ oTree

unread,
Feb 28, 2022, 5:50:27 AM2/28/22
to Kate Hahn-Madole, oTree help & discussion
If you want to randomize the order of tasks, see random_task_order in otree-snippets.

inner_dispatch is not part of oTree’s documented feature set. It is a piece of internal code someone found from reading oTree’s source code.

Sent from my phone

On Feb 28, 2022, at 6:42 PM, Kate Hahn-Madole <khahn....@gmail.com> wrote:

Hi all, 

We updated our otree version from 3.3.11 to 5.6.0 and now get an error with the randomization of the pages in our survey. We had been manipulating the inner_dispatch() function to achieve this (code attached below), but now when we run the code (only change is the new version) we get an error: Inner dispatch takes 1 position argument - 2 were given. Does this have something to do with the move away from Django in the new version? Any advice on how we can resolve this without just downgrading to the previous version? Happy to provide more details if necessary!

Best, 

Kate

--
You received this message because you are subscribed to the Google Groups "oTree help & discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to otree+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/otree/aa52634e-84cd-445b-9863-1213b5869e22n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages