Skip to content

Commit

Permalink
fix: delete correlations with empty link array after external movements
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwenk committed Oct 15, 2021
1 parent 9f442bc commit a5d6e9a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/utilities/build/buildValues.ts
Expand Up @@ -42,6 +42,11 @@ export function buildValues(spectra: Spectra, options: Options): Values {
signals.signals2D,
tolerance,
);
} else {
// in case an external movement has led to en empty link array within a correlation
_correlations = _correlations.filter(
(correlation) => correlation.link.length > 0,
);
}
// set the number of attached protons via DEPT or edited HSQC
_correlations = setProtonsCountFromData(
Expand Down

0 comments on commit a5d6e9a

Please sign in to comment.