mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-08 09:38:12 +08:00
worldIndex returns NaN
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user