Skip to content

Commit

Permalink
Added guard to avoid writing prf intensities if they have not been ca…
Browse files Browse the repository at this point in the history
…lculated.
  • Loading branch information
toastisme committed Mar 11, 2024
1 parent 9bb345d commit 73fe405
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dials/command_line/simple_tof_integrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 73fe405

Please sign in to comment.