worldIndex returns NaN

This commit is contained in:
Colin Megill
2018-10-15 11:20:52 -07:00
parent a297956e69
commit 090bad040e
+2 -4
View File
@@ -298,12 +298,10 @@ export function createVarDimensionsMap(
) { ) {
const { varDataCache, worldObsIndex } = world; const { varDataCache, worldObsIndex } = world;
const varData = _worldVarDataCache[geneName]; const varData = _worldVarDataCache[geneName];
const worldIndex = worldObsIndex ? idx => worldObsIndex[idx] : idx => idx; const worldIndex = worldObsIndex ? idx => worldObsIndex[idx] : idx => idx; /* this results in NaN when implemented below as it was in the test code */
console.log("in createVarDataCrossfilterDimensionsForGeneName!", varData);
return crossfilter.dimension(r => { return crossfilter.dimension(r => {
varData[r.__obsIndex__]; return varData[r.__obsIndex__];
}, Float32Array); }, Float32Array);
} }