Skip to content
Snippets Groups Projects

gwistat updates

Merged Rebecca Ewing requested to merge gwistat-updates into master
1 file
+ 9
1
Compare changes
  • Side-by-side
  • Inline
@@ -81,7 +81,15 @@ class IFOStatusTracker(object):
time, bit = s.getvalue().split('\n')[0].split()
bit = int(bit)
time = float(time)
state = 1 if (bit & 0b1 == 0b1) else 0
## FIXME hacky
if ifo == "K1":
# only check 0th bit
state = 1 if (bit & 0b1 == 0b1) else 0
else:
# for HLV check 0th and 1st bit
state = 1 if (bit & 0b11 == 0b11) else 0
statechange = False
## track duration
Loading