Skip to content

Commit

Permalink
fix: calculate the chart for NMR multiplet analysis
Browse files Browse the repository at this point in the history
Revert "chore: do not call analyseMultiplet in debug mode"

This reverts commit 7124aec.

Correct 'j' to 'js' for last version of multiplet-analysis
  • Loading branch information
lpatiny committed Sep 5, 2021
1 parent 6af295f commit b8279eb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/component/modal/MultipletAnalysisModal.tsx
Expand Up @@ -143,6 +143,7 @@ export default function MultipletAnalysisModal({
frequency: info.originFrequency,
takeBestPartMultiplet: true,
symmetrizeEachStep: true,
debug: true,
});
setCalcFinished(true);
setAnalysisData(result);
Expand Down Expand Up @@ -200,10 +201,10 @@ export default function MultipletAnalysisModal({
</Plot>
<div className="multiplicity">
<p>
{analysisData.j[index]
? `${analysisData.j[index]?.multiplicity}: ${analysisData.j[
index
]?.coupling.toFixed(3)} Hz`
{analysisData.js[index]
? `${
analysisData.js[index]?.multiplicity
}: ${analysisData.js[index]?.coupling.toFixed(3)} Hz`
: ''}
</p>
</div>
Expand Down

0 comments on commit b8279eb

Please sign in to comment.