You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -991,8 +991,11 @@ export async function addDependencySourceFunctions({
991
991
if(isArray(v)){
992
992
thrownewError("Unsupported nesting of arrays");
993
993
}
994
+
if(v===undefined||v===null){
995
+
return{score: undefined,max_score: undefined};
996
+
}
994
997
thrownewError(
995
-
`Unsupported value type for mean. Mean can only be applied to gradebook columns because it expects a max_score for each value. Got: ${JSON.stringify(v,null,2)}`
998
+
`Unsupported value type for mean. Mean can only be applied to gradebook columns because it expects a max_score for each value.`
996
999
);
997
1000
});
998
1001
constvalidValues=valuesToAverage.filter(
@@ -1099,9 +1102,9 @@ export async function addDependencySourceFunctions({
1099
1102
}));
1100
1103
console.log(`Drop_lowest called with ${value.length} values, dropping ${count}:`,JSON.stringify(inputSummary));
1101
1104
1102
-
// Filter out entries with max_score <= 0 before sorting and selecting to drop
1105
+
// Filter out entries with max_score <= 0 or score === null before sorting and selecting to drop
1103
1106
// These entries should be preserved and not count toward drop_lowest
0 commit comments