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:
@@ -339,6 +337,7 @@ def pctweplfit(
339
337
path_type,
340
338
phantom_length_samples,
341
339
phantom_width,
340
+
max_phantom_length,
342
341
detector_distance,
343
342
number_of_detectors,
344
343
initial_energy,
@@ -350,8 +349,13 @@ def pctweplfit(
350
349
seed,
351
350
verbose,
352
351
):
352
+
ifdetector_distance<max_phantom_length:
353
+
print(
354
+
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