Commit b39fb768 authored by Qi Chu's avatar Qi Chu

pipeio.py: unicode for lal.Unit not recognized, force using utf-8 to parse sample-units

parent 2b2e3926
......@@ -208,7 +208,7 @@ def parse_spectrum_message(message):
epoch = lal.LIGOTimeGPS(0, message.timestamp),
f0 = 0.0,
deltaF = s["delta-f"],
sampleUnits = lal.Unit(s["sample-units"].strip()),
sampleUnits = lal.Unit(s["sample-units"].strip().encode("utf-8")),
length = len(s["magnitude"])
)
psd.data.data = s["magnitude"]
......
Markdown is supported
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