Add background functionality

This commit is contained in:
Pim Nelissen
2026-03-30 08:24:07 +02:00
parent 0a60bb09e9
commit c635c7f594
6 changed files with 43 additions and 11 deletions

View File

@ -39,13 +39,21 @@ class SimulationEngine:
)
def _calculate_count_rate_along_path(self) -> CountRateOutput:
acq_points, sub_points, cps, int_counts = calculate_counts_along_path(
self.landscape,
self.detector,
velocity=self.runtime_spec.speed
acq_points, sub_points, cps, int_counts, mean_bkg_counts = (
calculate_counts_along_path(
self.landscape,
self.detector,
velocity=self.runtime_spec.speed
)
)
return CountRateOutput(acq_points, sub_points, cps, int_counts)
return CountRateOutput(
acq_points,
sub_points,
cps,
int_counts,
mean_bkg_counts
)
def _calculate_point_source_distance_to_path(self) -> List[SourceOutput]: