mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 08:38:11 +00:00
return 0 when no gazeData (possibly fixes #1724)
This commit is contained in:
parent
3d678e08db
commit
1c9ca30d6f
@ -241,6 +241,9 @@
|
||||
|
||||
function calculateSampleRate(gazeData){
|
||||
var mean_diff = [];
|
||||
if(gazeData.length == 0){
|
||||
return 0;
|
||||
}
|
||||
for(var i=0; i<gazeData.length; i++){
|
||||
if(gazeData[i].length > 1){
|
||||
var t_diff = [];
|
||||
@ -255,7 +258,6 @@
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function validation_done(){
|
||||
|
Loading…
Reference in New Issue
Block a user