You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: applications/pctweplfit/pctweplfit.py
+15-3Lines changed: 15 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,6 @@
11
11
12
12
epsilon_mm=1e-5
13
13
14
-
PROTON_RANGE=260# mm
15
-
16
14
17
15
defpv(verbose, *args, **kwargs):
18
16
ifverbose:
@@ -340,6 +338,7 @@ def pctweplfit(
340
338
path_type,
341
339
phantom_length_samples,
342
340
phantom_width,
341
+
max_phantom_length,
343
342
detector_distance,
344
343
number_of_detectors,
345
344
initial_energy,
@@ -351,8 +350,13 @@ def pctweplfit(
351
350
seed,
352
351
verbose,
353
352
):
353
+
ifdetector_distance<max_phantom_length:
354
+
print(
355
+
f"Warning, detector distance of {detector_distance} mm is smaller than the maximum phantom length of {max_phantom_length} mm. A maximum phantom length of {max_phantom_length} will be used.",
0 commit comments