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
@@ -10,8 +10,6 @@
10
10
11
11
epsilon_mm=1e-5
12
12
13
-
PROTON_RANGE=260# mm
14
-
15
13
16
14
defpv(verbose, *args, **kwargs):
17
15
ifverbose:
@@ -338,6 +336,7 @@ def pctweplfit(
338
336
path_type,
339
337
phantom_length_samples,
340
338
phantom_width,
339
+
max_phantom_length,
341
340
detector_distance,
342
341
number_of_detectors,
343
342
initial_energy,
@@ -349,8 +348,13 @@ def pctweplfit(
349
348
seed,
350
349
verbose,
351
350
):
351
+
ifdetector_distance<max_phantom_length:
352
+
print(
353
+
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