mirror of
https://github.com/pim-n/pg-rad
synced 2026-04-24 19:48:10 +02:00
fix typos / PEP8
This commit is contained in:
@ -11,7 +11,7 @@ def generate_background(
|
|||||||
cps_array: np.ndarray,
|
cps_array: np.ndarray,
|
||||||
detector: Detector,
|
detector: Detector,
|
||||||
energy_keV: float,
|
energy_keV: float,
|
||||||
|
|
||||||
) -> np.ndarray:
|
) -> np.ndarray:
|
||||||
"""
|
"""
|
||||||
Generate synthetic background cps for a given detector and energy.
|
Generate synthetic background cps for a given detector and energy.
|
||||||
|
|||||||
@ -152,7 +152,7 @@ def calculate_counts_along_path(
|
|||||||
cps, detector, landscape.point_sources[0].isotope.E
|
cps, detector, landscape.point_sources[0].isotope.E
|
||||||
)
|
)
|
||||||
|
|
||||||
cps_with_bg = cps# + bkg
|
cps_with_bg = cps + bkg
|
||||||
# reshape so each segment is on a row
|
# reshape so each segment is on a row
|
||||||
cps_per_seg = cps_with_bg.reshape(num_segments, points_per_segment)
|
cps_per_seg = cps_with_bg.reshape(num_segments, points_per_segment)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user