From 97a18910f97cb9fd02a8318d61d6921b918de5be Mon Sep 17 00:00:00 2001
From: Rebecca Ewing <ree55@psu.edu>
Date: Wed, 3 Aug 2022 15:08:44 -0400
Subject: [PATCH] remove gz option in load_fileobj

---
 gstlal-inspiral/bin/gstlal_ll_inspiral_pastro_uploader | 4 ++--
 gstlal-ugly/bin/gstlal_lvc_rates_plot_injections       | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gstlal-inspiral/bin/gstlal_ll_inspiral_pastro_uploader b/gstlal-inspiral/bin/gstlal_ll_inspiral_pastro_uploader
index 73b7471ee5..b46c0dc2c8 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 13eea1a18f..84b3d488bc 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)
-- 
GitLab