Skip to content

Commit

Permalink
- update to write out run ranges instead of individual runs [rtj]
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Jones committed May 18, 2018
1 parent ccb1254 commit 669ee55
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions ccdb/rcdbscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,25 @@
run = -1
col = 0
con = 0
lastrun = 0
for value in values.rows:
lastcol = col
lastcon = con
run = value[0]
if value[2] == "Retracted":
con = 0
elif value[2] == "Be 75um":
con = 75
elif value[2] == "Be 750um":
con = 750
if value[1] == "5.0mm hole":
col = 50
elif value[1] == "3.4mm hole":
col = 34
elif value[1] == "Blocking":
col = 0
if value[2] == "Retracted":
con = 0
elif value[2] == "Be 75um":
con = 75
elif value[2] == "Be 750um":
con = 750
if col != lastcol or con != lastcon:
print run, col, con
print "{0}-{1}".format(lastrun, run-1), lastcol, lastcon
lastrun = run
print "{0}-{1}".format(lastrun, run), col, con

0 comments on commit 669ee55

Please sign in to comment.