Migrate from glue.ligolw to ligo.lw for LIGO_LW XML I/O
glue.ligolw
is deprecated (see lscsoft/glue@e3e68217) and will be removed in a future release of lscsoft-glue. All code should be updated to use the new interface provided by python-ligo-lw.
Imports (presuming usage) of glue.ligolw
) is widespread in this package:
$ git grep -l "glue\.ligolw"
INSTALL.md
MonteCarloMarginalizeCode/Code/ILE_data_handling_probe.py
MonteCarloMarginalizeCode/Code/RIFT/misc/ourparams.py
MonteCarloMarginalizeCode/Code/RIFT/misc/xmlutils.py
MonteCarloMarginalizeCode/Code/bin/util_SimInspiralToCoinc.py
MonteCarloMarginalizeCode/Code/compute_marginalized_likelihood
MonteCarloMarginalizeCode/Code/compute_marginalized_likelihood_tidal
MonteCarloMarginalizeCode/Code/old/extract_one_injection
MonteCarloMarginalizeCode/Code/old/make_triplot
MonteCarloMarginalizeCode/Code/old/plot_integral
MonteCarloMarginalizeCode/Code/old/plot_like_contours
MonteCarloMarginalizeCode/Code/old/plot_parallel_coordinates
MonteCarloMarginalizeCode/Code/old/plot_posterior
MonteCarloMarginalizeCode/Code/old/plot_samples
MonteCarloMarginalizeCode/Code/old/postprocess_1d_cumulative
MonteCarloMarginalizeCode/Code/test/test_data_vs_template.py
MonteCarloMarginalizeCode/Code/test/test_effectiveFisher.py
MonteCarloMarginalizeCode/Code/test/test_like_and_samp.py
MonteCarloMarginalizeCode/Code/test/test_like_and_samp_simplified.py
MonteCarloMarginalizeCode/Code/test/test_psd_xml_io.py
MonteCarloMarginalizeCode/Code/test/test_response_functions_Q.py
MonteCarloMarginalizeCode/Code/util_make_zero_noise_inj_frame
MonteCarloMarginalizeCode/Code/xmlInspiralToILEPinned.py
MonteCarloMarginalizeCode/data/BNS_2015_MDC/DerivedZeroSpinTests/stage_zero_spin_injections
MonteCarloMarginalizeCode/data/BNS_2015_MDC/followup
MonteCarloMarginalizeCode/data/BNS_2015_MDC/harvest_neff
MonteCarloMarginalizeCode/data/BNS_2015_MDC/stage_injections
MonteCarloMarginalizeCode/data/generate_aligo_psd
MonteCarloMarginalizeCode/data/generate_iligo_psd
MonteCarloMarginalizeCode/data/generate_psd_ifo
MonteCarloMarginalizeCode/data/utils/plot_psds
MonteCarloMarginalizeCode/data/utils/plot_psds_single
MonteCarloMarginalizeCode/data/utils/plot_ts
Simply replacing all instances of glue.ligolw
with ligo.lw
will get you most of the way there, but there are nuances related to the differences in the actual file format supported by lscsoft-glue and python-ligo-lw.