mirror of
https://github.com/pim-n/pg-rad
synced 2026-04-24 22:48:10 +02:00
add SimulationEngine and SimulationOutputs to compute results and pass standardized objects on to plotter
This commit is contained in:
25
src/pg_rad/simulator/outputs.py
Normal file
25
src/pg_rad/simulator/outputs.py
Normal file
@ -0,0 +1,25 @@
|
||||
from typing import List, Tuple
|
||||
|
||||
from dataclasses import dataclass
|
||||
|
||||
|
||||
@dataclass
|
||||
class CountRateOutput:
|
||||
arc_length: List[float]
|
||||
count_rate: List[float]
|
||||
|
||||
|
||||
@dataclass
|
||||
class SourceOutput:
|
||||
name: str
|
||||
isotope: str
|
||||
activity: float
|
||||
position: Tuple[float, float, float]
|
||||
dist_from_path: float
|
||||
|
||||
|
||||
@dataclass
|
||||
class SimulationOutput:
|
||||
name: str
|
||||
count_rate: CountRateOutput
|
||||
sources: List[SourceOutput]
|
||||
Reference in New Issue
Block a user