From f4f09ee786fc7ffb93ef39b489c69f29c8fbdde5 Mon Sep 17 00:00:00 2001 From: Patrick Godwin <patrick.godwin@ligo.org> Date: Wed, 3 Feb 2021 16:47:06 -0800 Subject: [PATCH] gstlal_snax_bank_overlap, gstlal_snax_dag_online, gstlal_snax_synchronize: fix python3 import/syntax errors --- gstlal-burst/bin/gstlal_snax_bank_overlap | 6 +++--- gstlal-burst/bin/gstlal_snax_dag_online | 2 +- gstlal-burst/bin/gstlal_snax_synchronize | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gstlal-burst/bin/gstlal_snax_bank_overlap b/gstlal-burst/bin/gstlal_snax_bank_overlap index 4a0cbc7349..64ea2d7f38 100755 --- a/gstlal-burst/bin/gstlal_snax_bank_overlap +++ b/gstlal-burst/bin/gstlal_snax_bank_overlap @@ -33,15 +33,15 @@ from optparse import OptionParser import os import random import sys -import urlparse +from urllib.parse import urljoin import numpy import lal from glue import markup -from gstlal import plotutil from gstlal import aggregator +from gstlal.plots import util as plotutil from gstlal.snax import utils import matplotlib @@ -198,7 +198,7 @@ def to_output_url(output_dir): username = os.getlogin() basepath = os.path.join(os.path.join('/home/', username), 'public_html') extension_url = os.path.relpath(os.path.abspath(output_dir), basepath) - base_url = urlparse.urljoin(cluster_urls[options.cluster], '~' + username) + base_url = urljoin(cluster_urls[options.cluster], '~' + username) return base_url + '/' + extension_url ############################### diff --git a/gstlal-burst/bin/gstlal_snax_dag_online b/gstlal-burst/bin/gstlal_snax_dag_online index b7210e8889..60963bc5c4 100755 --- a/gstlal-burst/bin/gstlal_snax_dag_online +++ b/gstlal-burst/bin/gstlal_snax_dag_online @@ -83,7 +83,7 @@ def generate_options(options): "persist-cadence": options.persist_cadence } else: - raise NotImplementedError, 'not an available option for online jobs at this time' + raise NotImplementedError("not an available option for online jobs at this time") # program behavior options program_options = {"psd-fft-length": options.psd_fft_length} diff --git a/gstlal-burst/bin/gstlal_snax_synchronize b/gstlal-burst/bin/gstlal_snax_synchronize index 371d7c67e3..3dcff38c19 100755 --- a/gstlal-burst/bin/gstlal_snax_synchronize +++ b/gstlal-burst/bin/gstlal_snax_synchronize @@ -29,7 +29,7 @@ import json import logging from collections import deque -from Queue import PriorityQueue +from queue import PriorityQueue from optparse import OptionParser from ligo.scald import utils -- GitLab