File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
libra_toolbox/neutron_detection/activation_foils Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments