Skip to content

Commit

Permalink
Make sure library matching loading uses Path correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-l-kong committed Nov 26, 2024
1 parent 4249035 commit 25074c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/maldi_tools/extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def library_matching(
or not, the composition name and the mass error if a match was found or not.
"""
peak_list: List[float] = [
float(p.replace("_", ".")) for p in remove_file_extensions(list_files(extraction_dir / "float"))
float(p.replace("_", ".")) for p in remove_file_extensions(list_files(Path(extraction_dir) / "float"))
]
peak_df = pd.DataFrame({"peak": np.array(peak_list)})
match_fun = partial(_matching_vec, library_peak_df=library_peak_df, ppm=ppm)
Expand Down

0 comments on commit 25074c4

Please sign in to comment.