NameError from lalapps_power_pipe on python>=3
If anyone tries to run lalapps_power_pipe
under python>=3
, they will encounter a NameError
:
$ pyflakes lalapps/src/power/lalapps_power_pipe.py
...
src/power/lalapps_power_pipe.py:121: undefined name 'file'
...
The issue is this line:
seglistdict[ifo] = segmentsUtils.fromsegwizard(file(config.get("pipeline", "seglist_%s" % ifo)), coltype = LIGOTimeGPS).coalesce()