init doc
This commit is contained in:
parent
1800675fd3
commit
3e5d232e36
50 changed files with 4194 additions and 105 deletions
|
@ -46,8 +46,6 @@ def finds_peak(wavelengths, intensities, min_peak_prominence, min_peak_distance=
|
|||
(peaks_min, peaks_max)
|
||||
|
||||
"""
|
||||
|
||||
|
||||
peaks_max, _ = find_peaks(intensities, prominence=min_peak_prominence, distance=min_peak_distance)
|
||||
peaks_min, _ = find_peaks(-intensities, prominence=min_peak_prominence, distance=min_peak_distance)
|
||||
|
||||
|
@ -59,10 +57,11 @@ def finds_peak(wavelengths, intensities, min_peak_prominence, min_peak_distance=
|
|||
plt.xlabel(r'$\lambda$ (nm)')
|
||||
plt.ylabel(r'$I^*$')
|
||||
plt.legend()
|
||||
import inspect
|
||||
plt.title(inspect.currentframe().f_code.co_name)
|
||||
plt.tight_layout()
|
||||
plt.show()
|
||||
|
||||
|
||||
return peaks_min, peaks_max
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue