Commit 1abe76ad authored by Leo P. Singer's avatar Leo P. Singer
Browse files

Work around floating point Virgo state vector

parent 56104225
......@@ -335,6 +335,10 @@ def check_vector(cache, channel, start, end, bits, logic_type='all'):
except IndexError:
log.exception('Failed to read from low-latency frame files')
else:
# FIXME: In the playground environment, the Virgo state vector
# channel is stored as a float. Is this also the case in the
# production environment?
statevector = statevector.astype(np.uint32)
if len(statevector) > 0: # statevector must not be empty
return {bitname.format(channel.split(':')[0], key):
bool(logic_map[logic_type](
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment