Skip to content
Snippets Groups Projects
Commit ad2c0962 authored by Kipp Cannon's avatar Kipp Cannon
Browse files

inspiral.py: simplify use of write_url()

- don't need to convert URLs to local filenames to use, that's what that function is for
parent cf359f09
No related branches found
No related tags found
No related merge requests found
......@@ -1317,7 +1317,7 @@ class Data(object):
def __write_ranking_stat_url(self, url, description, snapshot = False, verbose = False):
# write the ranking statistic file.
ligolw_utils.write_url(self.__get_rankingstat_xmldoc(), ligolw_utils.local_path_from_url(url), gz = (url or "stdout").endswith(".gz"), verbose = verbose, trap_signals = None)
ligolw_utils.write_url(self.__get_rankingstat_xmldoc(), url, gz = (url or "stdout").endswith(".gz"), verbose = verbose, trap_signals = None)
# Snapshots get their own custom file and path
if snapshot:
fname = self.T050017_filename(description + '_DISTSTATS', 'xml.gz')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment