fix embedding selection (#2543)

reverted code to previous implementation that was presumably changed due to a "destructuring assignment" lint error; explicitly ignoring error now
This commit is contained in:
Andrew Tolopko
2022-07-28 15:49:33 -04:00
committed by GitHub
parent 06da05eb9f
commit 69a6d52240

View File

@@ -137,11 +137,13 @@ function _getEmbeddingRowOffsets(baseRowIndex, embeddingDf) {
- if the embedding contains NaN coordinates, return a rowIndex
that contains only the rows with discrete valued coordinates.
Currently assumes that there will be onl two dimensions in the embedding.
Currently assumes that there will be only two dimensions in the embedding.
*/
const { icol } = embeddingDf;
const X = icol(0).asArray();
const Y = icol(1).asArray();
// eslint-disable-next-line react/destructuring-assignment -- destructuring fails
const X = embeddingDf.icol(0).asArray();
// eslint-disable-next-line react/destructuring-assignment -- destructuring fails
const Y = embeddingDf.icol(1).asArray();
const offsets = new Int32Array(X.length);
let numOffsets = 0;