Skip to content
Discussion options

You must be logged in to vote

Hi Cai, I think one problem here is that the call-function's func parameter isn't passed the trial data as an argument, as is the case with the on_finish parameter. Instead, when the call-function is asynchronous, then "the first argument passed to func will be a callback that you should call when the async operation is complete" - from the call-function parameter descriptions in the docs. This example from the docs shows how the argument to the func function parameter should be used.

Another problem in your case is that you're looping through different context values when the page first loads, but then you need those different values to be "piped in" to the function definitions that are …

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@becky-gilbert
Comment options

@cslongman
Comment options

@becky-gilbert
Comment options

@cslongman
Comment options

@becky-gilbert
Comment options

Answer selected by cslongman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants