Skip to content

Commit 54bef85

Browse files
committed
Add documentation for get_calibration_data()
1 parent f85147b commit 54bef85

File tree

1 file changed

+16
-0
lines changed
  • libra_toolbox/neutron_detection/activation_foils

1 file changed

+16
-0
lines changed

libra_toolbox/neutron_detection/activation_foils/compass.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,22 @@ def get_calibration_data(
768768
channel_nb: int,
769769
peak_kwargs: dict = None,
770770
):
771+
"""
772+
Finds the radionuclide peaks from the check source measurements and returns
773+
a list of the energy channels and a list of the actual energies associated
774+
with those peaks.
775+
776+
check_source_measurements: list of CheckSourceMeasurement objects
777+
background_measurement: Measurement object for the background measurement
778+
channel_nb: channel number of the detector to use for calibration
779+
peak_kwargs: optional dictionary of keyword arguments to pass to the function
780+
get_peaks() for each check source measurement, with the check source nuclide
781+
name as key.
782+
Example: peak_kwargs = {
783+
'Na-22': {'start_index': 100, 'height': 0.1 * np.max(hist)},
784+
'Co-60': {'start_index': 400, 'height': 0.6 * np.max(hist)},
785+
}
786+
"""
771787
background_detector = [
772788
detector
773789
for detector in background_measurement.detectors

0 commit comments

Comments
 (0)