Rotor task nans


Author
Message
aquirk
aquirk
Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)
Group: Forum Members
Posts: 31, Visits: 70
Hm, this returned a bunch of errors (see photo), and kept calculating perfect scores as zero (see data file).
Attachments
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 99K
aquirk - Tuesday, January 23, 2018
Hm, this returned a bunch of errors (see photo), and kept calculating perfect scores as zero (see data file).

Copy and paste error on my part is responsible for that, sorry. The expression in my previous reply was missing a crucial "{":

/ offdurations_trial_mean = if (list.offDurations_trial.itemcount>0 && list.targetDistances_trial.itemcount>0) {
                            list.offDurations_trial.mean
                        } else if (list.targetDistances_trial.itemcount == 0) {
                            "nan"
                        } else {
                            0
                        }

aquirk
aquirk
Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)
Group: Forum Members
Posts: 31, Visits: 70
Oh perfect, thank you so much! One last question (not a huge deal but I figured I'd check): on the feedback page if someone has 'nan' for any of the trials, in the section where it says their high score, nan is reported as the high score. Is there any way around this? To only list actual numbers for the high score?
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 99K
aquirk - Tuesday, January 23, 2018
Oh perfect, thank you so much! One last question (not a huge deal but I figured I'd check): on the feedback page if someone has 'nan' for any of the trials, in the section where it says their high score, nan is reported as the high score. Is there any way around this? To only list actual numbers for the high score?

About the only thing I can think of would be something like this:

<trial rest>
/ ontrialbegin = [if(expressions.offdurations_trial_mean >= 0){
    item.ontargettimes.appenditem(expressions.timeOnTarget_trial)
    } else {
        item.ontargettimes.appenditem("-1000")
    }
]

/ stimulusframes = [1 = clearscreen, BetweenTest]
/ timeout = parameters.restTime
/ branch = [
    trial.startRotate;
]
/ recorddata = false
</trial>

<trial rest1>
/ ontrialbegin = [if(expressions.offdurations_trial_mean >= 0){
    item.ontargettimes.appenditem(expressions.timeOnTarget_trial)
    } else {
        item.ontargettimes.appenditem("-1000")
    }
]

/ stimulusframes = [1 = clearscreen, BetweenTest1]
/ timeout = 5000
/ branch = [
    trial.startRotate;
]
/ recorddata = false
</trial>

<trial prequestion>
/ ontrialbegin = [if(expressions.offdurations_trial_mean >= 0){
    item.ontargettimes.appenditem(expressions.timeOnTarget_trial)
    } else {
        item.ontargettimes.appenditem("-1000")
    }
]

/ stimulusframes = [1 = clearscreen, BetweenTest2]
/ validresponse = (lbuttondown)
/ recorddata = false
/ branch = [
    trial.end
]
</trial>

That should result in the value -1 being displayed for "no movement" trials instead of the value "nan" (not a number). That, in turn, should lead to the high-score -- longest time on target for trials when there was movement -- being reported accurately as well.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search