caljones

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: Results are not saving #5663
    caljones
    Participant

    Hi Jeremy,

    This fixed it. Thank you so much for all your help while I was making this! Excited to show it off to people now 🙂

    Thanks,
    Callie

    in reply to: Results are not saving #5661
    caljones
    Participant

    Hi Jeremy,

    Thanks for your response! The results file seems to be working now, perhaps I just didn’t realize before. I’ve added the “last” and a log() underneath the images. Unfortunately, when I add “last” to the .log() underneath the keys, sometimes the experiment will freeze when no key is pressed. This issue is resolved when I remove it. The issue returns when I add “first” as well. Could I get your advice on this?

    Thank you so much!
    Callie

    in reply to: Matching Participants on Race/Gender? #5638
    caljones
    Participant

    Hi Jeremy,

    Thank you so much! This worked.

    One last question: would something like https://www.digitalocean.com/docs/spaces/how-to/ this work as a “server” to store my zip file with images? I don’t have my own dedicated server, so I’m looking for alternative options. Storing these images on a server of some sort would make the images/pages load faster in the experiment, right? Are there any other alternative server options for hosting images that you would recommend?

    Thanks,
    Callie

    in reply to: Matching Participants on Race/Gender? #5635
    caljones
    Participant

    Hi Jeremy,

    Thanks for getting back to me. Although that fixed the issue with the URL, I am still getting a 400 Bad Request when the new window opens. The log shows all commands up to newButton().wait() running. I see the race and sex selected in the URL. This makes me think perhaps something is off within these lines of code:

    if (GetURLParameter("id") && GetURLParameter("race") && GetURLParameter("sex")){
        
        race = decodeURI(GetURLParameter("race"))
        sex = decodeURI(GetURLParameter("sex"))
    
    Sequence("instructions1", randomize("practicesequence"), "Break1", randomize("experimentalsequence1"), "Break2", randomize("experimentalsequence2"), "Break3", randomize("experimentalsequence3"), "send", "Finish")
    
    // Instructions
    Template(
        GetTable("instructionsimage.csv")
            .filter("race", race)
            .filter("sex", sex)
        ,
        variable => newTrial("instructions1",
            defaultText
                .center()
                .print()

    Thank you very much for your help + patience!
    Callie

    in reply to: Matching Participants on Race/Gender? #5623
    caljones
    Participant

    Hi Jeremy,
    I’ve added this code, but when I test it the new window opens with a url like this one: https://expt.pcibex.net/ibexexps/caljones/Avatar/server.py?race=Please%20select%20the%20race%20that%20best%20describes%20you.&sex=Please%20select%20the%20sex%20that%20best%20describes%20you.&id=asdf

    It seems like, despite selecting a race/sex, the URL is taking the text of the question rather than the selected dropdown. This results in a 400 Bad Request error when the new window opens. Any ideas on what might be causing this and how to fix it?

    Thanks,
    Callie

    in reply to: While loop compatability? #5423
    caljones
    Participant

    Thank you very much!

    in reply to: While loop compatability? #5421
    caljones
    Participant

    Hello,
    I am also trying to create a task where if the participant doesn’t respond in a certain amount of time, the task moves onto the next trial. However, the response is a key press, and for some reason my code doesn’t seem to move on after a key press. I’ve attached what I have below, could you tell me what I’m doing wrong?

    newTrial("keySelection"
            newImage(variable.ImgFile)
                .size(650,452)
                .print()
           , 
            newKey("FJ")
                .log()
                .wait()
            ,
            newSelector("timeout")
                .add (getKey("FJ"))
                .callback(getTimer("timerout").stop())
            ,
            newTimer("timerout", 2000)
                .start()
                .wait()
            ,
            clear()
            ,
            getSelector("timeout") .test.selected()
                .success(newText(" ") .print())
                .failure(newText("Too slow!") .print())

    Thanks,
    Callie

Viewing 7 posts - 1 through 7 (of 7 total)