Skip to content

Commit

Permalink
update Spectrum loader
Browse files Browse the repository at this point in the history
  • Loading branch information
CunliangGeng committed Dec 14, 2023
1 parent 983aaa1 commit 186aea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nplinker/metabolomics/gnps/gnps_spectrum_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 186aea7

Please sign in to comment.