diff options
author | Thomas White <taw@physics.org> | 2017-10-19 14:40:03 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2017-10-19 14:40:03 +0200 |
commit | da88488674660041eff734aa4dc0d28a1d2bbe4b (patch) | |
tree | e33e4526cc209562b05389ce4fe615bce1d2249f /scripts | |
parent | 211dbed4c67d6966e96b952e6eb022f0bf4689ff (diff) |
peakogram-stream: Show the line and cell parameters when the maths goes wrong
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/peakogram-stream | 6 |
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) |