Skip to content

Commit

Permalink
Fix inconsistent arguments order in database.query
Browse files Browse the repository at this point in the history
  • Loading branch information
n-elie committed Nov 21, 2023
1 parent 4d74dae commit a4759a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libmetgem/_database.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def query(str filename, vector[int] indices, vector[double] mzvec, list datavec,
int min_intensity, int parent_filter_tolerance,
int matched_peaks_window, int min_matched_peaks_search,
double min_cosine, double analog_mz_tolerance=0.,
double mz_min = 50., bool positive_polarity=True, object callback=None):
bool positive_polarity=True, double mz_min = 50., object callback=None):
cdef:
bytes fname_bytes
char *fname
Expand Down
5 changes: 2 additions & 3 deletions libmetgem/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ def query(fname: str, indices: List[int], mzvec: List[float],
min_matched_peaks: int, min_intensity: int,
parent_filter_tolerance: int, matched_peaks_window: int,
min_matched_peaks_search: int, min_cosine: float,
analog_mz_tolerance: float=0., mz_min: float=50.,
positive_polarity: bool=True,
callback: Callable[[int], bool]=None) -> Dict[int, List[Dict[str, Union[float, int]]]]:
analog_mz_tolerance: float=0., positive_polarity: bool=True,
mz_min: float=50., callback: Callable[[int], bool]=None) -> Dict[int, List[Dict[str, Union[float, int]]]]:
"""
Query an SQLite database containing MS/MS spectra for either standards
(spectra with similar parent ion's *m/z* and similar MS/MS spectrum) or
Expand Down

0 comments on commit a4759a6

Please sign in to comment.