Skip to content
Snippets Groups Projects

gstlal_ifo_stat: add status Ready for Virgo

Merged Yun-Jing Huang requested to merge gwistat into master
1 file
+ 8
2
Compare changes
  • Side-by-side
  • Inline
@@ -164,8 +164,14 @@ class IFOStatusTracker(object):
# only check 0th bit
state = "Observing" if (bit & 0b1 == 0b1) else "Down"
elif self.ifo == "V1":
# for Virgo check 0th and 1st bit
state = "Observing" if (bit & 0b11 == 0b11) else "Down"
if (bit & 0b11 == 0b11):
# check 0th and 1st bit
state = "Observing"
elif (bit & 0b1 == 0b1):
# check 0th bit
state = "Ready"
else:
state = "Down"
else:
raise ValueError(f"Unsupported interferometer: {self.ifo}")
Loading