fix typos / PEP8

This commit is contained in:
Pim Nelissen
2026-03-30 08:48:37 +02:00
parent db12d573b2
commit 60edbd1976
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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)