Add flip direction. Change mean to Trapezoidal rule for integration along path. Scale count rate properly with acquisition time

This commit is contained in:
Pim Nelissen
2026-03-10 20:44:18 +01:00
parent b882f20358
commit b82196e431
8 changed files with 137 additions and 52 deletions

View File

@ -1,6 +1,7 @@
import logging
from pg_rad.path.path import Path
from pg_rad.detector.detectors import AngularDetector, IsotropicDetector
from pg_rad.objects.sources import PointSource
@ -17,6 +18,7 @@ class Landscape:
path: Path,
air_density: float,
point_sources: list[PointSource],
detector: IsotropicDetector | AngularDetector,
size: tuple[int, int, int]
):
"""Initialize a landscape.
@ -34,5 +36,6 @@ class Landscape:
self.point_sources = point_sources
self.size = size
self.air_density = air_density
self.detector = detector
logger.debug(f"Landscape created: {self.name}")