update isotope lookup to tabular format. Add primary gamma energy to results plotting

This commit is contained in:
Pim Nelissen
2026-03-12 14:32:21 +01:00
parent 09e74051f0
commit 1dc553d2e2
9 changed files with 56 additions and 24 deletions

View File

@ -12,7 +12,7 @@ class PointSource(BaseObject):
def __init__(
self,
activity_MBq: int,
isotope: str,
isotope: Isotope,
position: tuple[float, float, float] = (0, 0, 0),
name: str | None = None,
color: str = 'red'
@ -40,7 +40,7 @@ class PointSource(BaseObject):
super().__init__(position, name, color)
self.activity = activity_MBq
self.isotope: Isotope = get_isotope(isotope)
self.isotope = isotope
logger.debug(f"Source created: {self.name}")