Skip to content

Commit 4692d6b

Browse files
committed
chore: fix eslint
1 parent ba52dae commit 4692d6b

5 files changed

Lines changed: 5 additions & 14 deletions

File tree

src/matrix/matrixPQN.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function matrixPQN(
3232
medianOfQuotients: number[];
3333
} {
3434
const { max = 100 } = options;
35-
const matrixB = new Matrix(matrix as number[][]);
35+
const matrixB = new Matrix(matrix);
3636
for (let i = 0; i < matrixB.rows; i++) {
3737
const normalizationFactor = matrixB.getRowVector(i).norm('frobenius') / max;
3838
const row = matrixB.getRowVector(i).div(normalizationFactor);

src/utils/__tests__/calculateAdaptiveWeights.test.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,7 @@ test('works with different array types', () => {
134134
const baseline = [1.1, 2.1, 3.1, 4.1, 5.1];
135135
const weights = [1, 1, 1, 1, 1];
136136

137-
const result = calculateAdaptiveWeights(
138-
yData as any,
139-
baseline as any,
140-
weights as any,
141-
{},
142-
);
137+
const result = calculateAdaptiveWeights(yData, baseline, weights, {});
143138

144139
expect(result).toBeDefined();
145140
expect(result[0]).toBe(1);

src/xy/xyFilterX.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export function xyFilterX(
4747
}
4848
const {
4949
from = x[0],
50-
to = x.at(-1) as number,
50+
to = x.at(-1),
5151
zones = [{ from, to }],
5252
exclusions = [],
5353
} = options;

src/xy/xyReduce.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export function xyReduce(
6969
const { x, y } = data;
7070
const {
7171
from = x[0],
72-
to = x.at(-1) as number,
72+
to = x.at(-1),
7373
nbPoints = 4001,
7474
optimize = false,
7575
} = options;

src/xy/xyReduceNonContinuous.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,7 @@ export function xyReduceNonContinuous(
5151
};
5252
}
5353
const { x, y } = data;
54-
const {
55-
from = x[0],
56-
to = x.at(-1) as number,
57-
maxApproximateNbPoints = 4001,
58-
} = options;
54+
const { from = x[0], to = x.at(-1), maxApproximateNbPoints = 4001 } = options;
5955
let { zones = [] } = options;
6056

6157
zones = zonesNormalize(zones, { from, to });

0 commit comments

Comments
 (0)