Skip to content

Python3: Remove deprecated gz argument from ligolw_utils

This change removes the "gz" argument from a number of function calls as it has been deprecated the python-ligo-lw.

See the following docstring from the ligo.lw.utils subpackage that states how compression is handled. In particular, it says that the default behavior is to read the filename and if ".gz" is present in the filename string, then it will set compress=True. You can find this description here: https://git.ligo.org/kipp.cannon/python-ligo-lw/-/blob/1.8.1/ligo/lw/utils/init.py#L557.

This fix is to handle an error I hit below when running .run_py3_gw170817_offline_with_gout.sh in the igwn-py38-spiir conda environment on oz016.

paste__8_

Note that this fix may be addressed in a different MR already.

Merge request reports

Loading