Skip to content

Commit

Permalink
Merge pull request #11 from apeck12/stream_fix
Browse files Browse the repository at this point in the history
handling case of an unindexed stream
  • Loading branch information
fredericpoitevin authored Feb 25, 2022
2 parents 76ad889 + be1f7d8 commit 9ab919a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sfx_utils/stream_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ def read_stream(self, input_file):

stream_data = np.array(stream_data)
if not self.cell_only:
stream_data[:,-1] = xtal_utils.compute_resolution(stream_data[:,2:8], stream_data[:,8:11])
if len(stream_data) == 0:
print("Warning: no indexed reflections found!")
else:
stream_data[:,-1] = xtal_utils.compute_resolution(stream_data[:,2:8], stream_data[:,8:11])

return stream_data

Expand Down

0 comments on commit 9ab919a

Please sign in to comment.