From 186aea77c7f953b5efb1283539fd11f144a9df57 Mon Sep 17 00:00:00 2001 From: Cunliang Geng Date: Mon, 4 Dec 2023 14:46:12 +0100 Subject: [PATCH] update Spectrum loader --- src/nplinker/metabolomics/gnps/gnps_spectrum_loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nplinker/metabolomics/gnps/gnps_spectrum_loader.py b/src/nplinker/metabolomics/gnps/gnps_spectrum_loader.py index 0a126242..7860ea5d 100644 --- a/src/nplinker/metabolomics/gnps/gnps_spectrum_loader.py +++ b/src/nplinker/metabolomics/gnps/gnps_spectrum_loader.py @@ -89,8 +89,8 @@ def _load(self): intensity=list(spec["intensity array"]), precursor_mz=precursor_mz, rt=rt, + metadata=spec["params"], ) - spectrum.metadata = spec["params"] self._spectra.append(spectrum) def _get_precursor_charge(self, charges: list) -> int: