Skip to content

Commit

Permalink
make FlashEntropySearch class accept extra parameters, which is for c…
Browse files Browse the repository at this point in the history
…onvience. No any functional improvement.
  • Loading branch information
YuanyueLi committed Aug 23, 2024
1 parent 15bea04 commit 3e592da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ms_entropy/entropy_search/flash_entropy_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def __init__(
low_memory=False,
path_data=None,
intensity_weight="entropy",
**kwargs,
):
"""
Initialize the EntropySearch class.
Expand All @@ -27,6 +28,7 @@ def __init__(
:param intensity_weight: The weight for the intensity in the entropy calculation, can be "entropy" or None. Default is "entropy".
- None: The intensity will not be weighted, then the unweighted similarity will be calculated.
- "entropy": The intensity will be weighted by the entropy, then the entropy similarity will be calculated.
:param kwargs: Those parameters will be ignored.
"""
self.precursor_mz_array = np.zeros(0, dtype=np.float32)
self.low_memory = low_memory
Expand Down
2 changes: 1 addition & 1 deletion ms_entropy/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.3.1'
__version__ = '1.3.2'

0 comments on commit 3e592da

Please sign in to comment.