update tests to reflect new Landscape design

This commit is contained in:
Pim Nelissen
2026-02-13 16:07:42 +01:00
parent 0db1fe0626
commit beb411d456
5 changed files with 10 additions and 18 deletions

View File

@ -14,7 +14,7 @@ class LandscapeDirector:
def build_test_landscape(self):
fp = files('pg_rad.data').joinpath(TEST_EXP_DATA)
source = PointSource(activity=100, isotope=CS137(), pos=(0, 0, 0))
source = PointSource(activity=100E9, isotope=CS137(), pos=(0, 0, 0))
lb = LandscapeBuilder("Test landscape")
lb.set_air_density(1.243)
lb.set_path_from_experimental_data(fp, z=0)

View File

@ -46,7 +46,7 @@ class Landscape:
def calculate_fluence_at(self, pos: tuple):
total_phi = 0.
for source in self.sources:
for source in self.point_sources:
r = source.distance_to(pos)
phi_source = phi_single_source(
r=r,