mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-02 12:28:11 +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
|
- if the embedding contains NaN coordinates, return a rowIndex
|
||||||
that contains only the rows with discrete valued coordinates.
|
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;
|
// eslint-disable-next-line react/destructuring-assignment -- destructuring fails
|
||||||
const X = icol(0).asArray();
|
const X = embeddingDf.icol(0).asArray();
|
||||||
const Y = icol(1).asArray();
|
// eslint-disable-next-line react/destructuring-assignment -- destructuring fails
|
||||||
|
const Y = embeddingDf.icol(1).asArray();
|
||||||
|
|
||||||
const offsets = new Int32Array(X.length);
|
const offsets = new Int32Array(X.length);
|
||||||
let numOffsets = 0;
|
let numOffsets = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user