lalapps_gen_timeslides failures when running script with python3 interpreter
Description of problem
lalapps_gen_timeslides --instrument=H1=0:0:0 --instrument=L1=0.62831:0.62831:0.62831 --instrument=V1=0.31415:0.31415:0.31415 tisi.xml
Traceback (most recent call last):
File "path/to/installdir/libexec/lalapps/lalapps_gen_timeslides.py", line 244, in <module>
for offsetvect in time_slides[:N]:
TypeError: 'dict_values' object is not subscriptable
Expected behavior
No output, tisi.xml
is produced in current working directory.
Steps to reproduce
Run the command above, or equivalently with:
python3 $(which lalapps_gen_timeslides) --instrument=H1=0:0:0 --instrument=L1=0.62831:0.62831:0.62831 --instrument=V1=0.31415:0.31415:0.31415 tisi.xml
Suggested solutions
One possible solution is:
for offsetvect in list(time_slides)[:N]:
Not sure whether this is all that's needed for the program to run though.
Edited by Patrick Godwin