diff --git a/gstlal-inspiral/bin/gstlal_ll_inspiral_pastro_uploader b/gstlal-inspiral/bin/gstlal_ll_inspiral_pastro_uploader index 73b7471ee52788881ac70126f6fafb3592f36780..b46c0dc2c8f4e623e3e853e22657808b1b5b74c5 100755 --- a/gstlal-inspiral/bin/gstlal_ll_inspiral_pastro_uploader +++ b/gstlal-inspiral/bin/gstlal_ll_inspiral_pastro_uploader @@ -152,10 +152,10 @@ class PAstroUploader(events.EventProcessor): logging.warning(f'Exceeded {self.max_retries} attempts to upload pastro file for {event["gid"]}. Removing this event from deque.') self.events.remove(event) - def load_xmlobj(self, xmlobj, gz=False): + def load_xmlobj(self, xmlobj): if isinstance(xmlobj, str): xmlobj = BytesIO(xmlobj.encode("utf-8")) - return ligolw_utils.load_fileobj(xmlobj, contenthandler = LIGOLWContentHandler, gz=gz) + return ligolw_utils.load_fileobj(xmlobj, contenthandler = LIGOLWContentHandler) def load_model(self, filename): model = pastro.load(filename) diff --git a/gstlal-ugly/bin/gstlal_lvc_rates_plot_injections b/gstlal-ugly/bin/gstlal_lvc_rates_plot_injections index 13eea1a18f4906be7d4b4874fed699173a654f41..84b3d488bc438e1b82f6d6e15973f2ac10dea781 100755 --- a/gstlal-ugly/bin/gstlal_lvc_rates_plot_injections +++ b/gstlal-ugly/bin/gstlal_lvc_rates_plot_injections @@ -71,7 +71,7 @@ for file_path in urls: tag = os.path.basename(file_path).split(".")[0] # fp = open(file_path, 'r') -# xmldoc, digest = utils.load_fileobj(fp, gz=True, contenthandler=ContentHandler) +# xmldoc, digest = utils.load_fileobj(fp, contenthandler=ContentHandler) # sim_table = table.get_table(xmldoc, 'sim_inspiral') xmldoc = utils.load_filename(sys.argv[1], False, contenthandler=ContentHandler) sim_table = table.get_table(xmldoc, lsctables.SimInspiralTable.tableName)