mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-15 12:47:56 +08:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user