funcnodes-span 0.1.8__tar.gz → 0.1.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {funcnodes_span-0.1.8 → funcnodes_span-0.1.9}/PKG-INFO +1 -1
- {funcnodes_span-0.1.8 → funcnodes_span-0.1.9}/funcnodes_span/__init__.py +1 -1
- {funcnodes_span-0.1.8 → funcnodes_span-0.1.9}/funcnodes_span/peak_analysis.py +5 -1
- {funcnodes_span-0.1.8 → funcnodes_span-0.1.9}/pyproject.toml +1 -1
- {funcnodes_span-0.1.8 → funcnodes_span-0.1.9}/README.md +0 -0
- {funcnodes_span-0.1.8 → funcnodes_span-0.1.9}/funcnodes_span/normalization.py +0 -0
- {funcnodes_span-0.1.8 → funcnodes_span-0.1.9}/funcnodes_span/smoothing.py +0 -0
|
@@ -499,7 +499,7 @@ def fit_1D(
|
|
|
499
499
|
def force_peak_finder(
|
|
500
500
|
x: np.array,
|
|
501
501
|
y: np.array,
|
|
502
|
-
basic_peaks: PeakProperties,
|
|
502
|
+
basic_peaks: List[PeakProperties],
|
|
503
503
|
) -> List[PeakProperties]:
|
|
504
504
|
# """
|
|
505
505
|
# Identify and return the two peaks around the main peak in the given peaks dictionary.
|
|
@@ -513,6 +513,10 @@ def force_peak_finder(
|
|
|
513
513
|
# Returns:
|
|
514
514
|
# - dict: A dictionary containing information about the two identified peaks.
|
|
515
515
|
# """
|
|
516
|
+
if len(basic_peaks) != 1:
|
|
517
|
+
raise ValueError("This method accepts only one main peak as an input.")
|
|
518
|
+
elif len(basic_peaks) == 0:
|
|
519
|
+
raise ValueError("No peaks found.")
|
|
516
520
|
peaks = copy.deepcopy(basic_peaks)
|
|
517
521
|
|
|
518
522
|
main_peak_i_index = peaks["i_index"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|