mirror of
https://github.com/pim-n/pg-rad
synced 2026-05-14 04:48:11 +02:00
update landscape to work with new detector
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import logging
|
||||
|
||||
from pg_rad.path.path import Path
|
||||
from pg_rad.detector.detectors import AngularDetector, IsotropicDetector
|
||||
from pg_rad.detector.detector import Detector
|
||||
from pg_rad.objects.sources import PointSource
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@ class Landscape:
|
||||
path: Path,
|
||||
air_density: float,
|
||||
point_sources: list[PointSource],
|
||||
detector: IsotropicDetector | AngularDetector,
|
||||
detector: Detector,
|
||||
size: tuple[int, int, int]
|
||||
):
|
||||
"""Initialize a landscape.
|
||||
@ -28,6 +28,7 @@ class Landscape:
|
||||
path (Path): The path of the detector.
|
||||
air_density (float): Air density in kg/m^3.
|
||||
point_sources (list[PointSource]): List of point sources.
|
||||
detector (Detector): The detector object.
|
||||
size (tuple[int, int, int]): Size of the world.
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user