aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/peakogram-stream6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/peakogram-stream b/scripts/peakogram-stream
index 1f67b39c..233a4e6f 100755
--- a/scripts/peakogram-stream
+++ b/scripts/peakogram-stream
@@ -102,7 +102,11 @@ with open(args.i) as f:
# Add reflection to list
columns = line.split()
n += 1
- data.append([resolution(cell, columns[0:3]),columns[5]])
+ try:
+ data.append([resolution(cell, columns[0:3]),columns[5]])
+ except:
+ print("Error with line: "+line.rstrip("\r\n"))
+ print("Cell: "+str(cell))
if n%1000==0:
sys.stdout.write("\r%i peaks found" % n)