From 73fe405980cf3da46e985a89e70b6a1e9b8c496c Mon Sep 17 00:00:00 2001 From: davidmcdonagh Date: Mon, 11 Mar 2024 13:45:39 +0000 Subject: [PATCH] Added guard to avoid writing prf intensities if they have not been calculated. --- src/dials/command_line/simple_tof_integrate.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dials/command_line/simple_tof_integrate.py b/src/dials/command_line/simple_tof_integrate.py index 4437cb3c18..8c904418c9 100644 --- a/src/dials/command_line/simple_tof_integrate.py +++ b/src/dials/command_line/simple_tof_integrate.py @@ -345,6 +345,8 @@ def valid_intensity(intensity, variance): ) ) + if "intensity.prf.value" not in reflections: + return with open("prf_" + filename, "w") as g: for i in range(len(reflections)): h, k, l = reflections["miller_index"][i]