mirror of
https://github.com/pim-n/pg-rad
synced 2026-04-24 17:58:11 +02:00
fix typos / PEP8
This commit is contained in:
@ -11,7 +11,7 @@ def generate_background(
|
||||
cps_array: np.ndarray,
|
||||
detector: Detector,
|
||||
energy_keV: float,
|
||||
|
||||
|
||||
) -> np.ndarray:
|
||||
"""
|
||||
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_with_bg = cps# + bkg
|
||||
cps_with_bg = cps + bkg
|
||||
# reshape so each segment is on a row
|
||||
cps_per_seg = cps_with_bg.reshape(num_segments, points_per_segment)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user