From 3d098eecf56859045bd6eb96d4f077ca16f1ddaa Mon Sep 17 00:00:00 2001 From: hamed musallam Date: Mon, 16 Jun 2025 10:00:40 +0200 Subject: [PATCH] refactor: change prediction default 'nbPoints' value to 256k --- app/scripts/nmr-cli/src/prediction/parsePredictionCommand.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scripts/nmr-cli/src/prediction/parsePredictionCommand.ts b/app/scripts/nmr-cli/src/prediction/parsePredictionCommand.ts index 578c88c..635fc39 100644 --- a/app/scripts/nmr-cli/src/prediction/parsePredictionCommand.ts +++ b/app/scripts/nmr-cli/src/prediction/parsePredictionCommand.ts @@ -30,7 +30,7 @@ const predictionOptions: { [key in keyof GenerateSpectrumOptions]: Options } = { nbPoints: { type: 'number', description: 'Number of points', - default: 1024, + default: 2 ** 18, // 256k points }, lineWidth: { type: 'number', @@ -146,7 +146,7 @@ async function predictNMR(options: PredictionArgs): Promise { solvent, from, to, - nbPoints = 1024, + nbPoints = 2 ** 18, // 256K frequency = 400, lineWidth = 1, tolerance = 0.001,