From 66a0f9a391e5b4020a279b3c0e1e435c69c3bb6c Mon Sep 17 00:00:00 2001 From: Brian Moe <bmoe@gravity.phys.uwm.edu> Date: Wed, 14 Apr 2010 16:10:57 -0500 Subject: [PATCH] Removed references to debug output file /tmp/foo --- gracedb/management/commands/make_histograms.py | 12 ++++++------ gracedb/translator.py | 6 ------ 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/gracedb/management/commands/make_histograms.py b/gracedb/management/commands/make_histograms.py index 1a47e23b4..c53ab92a9 100644 --- a/gracedb/management/commands/make_histograms.py +++ b/gracedb/management/commands/make_histograms.py @@ -12,7 +12,7 @@ from datetime import datetime, timedelta from subprocess import Popen, PIPE, STDOUT -DEST_DIR = "/tmp/foo" +DEST_DIR = "/var/www/html/histo" def analysisTypes(): @@ -38,11 +38,11 @@ class Command(NoArgsCommand): start_week = now - timedelta(7) start_month = now - timedelta(30) - PAST = 91 - now -= timedelta(PAST) - start_day -= timedelta(PAST) - start_week -= timedelta(PAST) - start_month -= timedelta(PAST) +# PAST = 91 +# now -= timedelta(PAST) +# start_day -= timedelta(PAST) +# start_week -= timedelta(PAST) +# start_month -= timedelta(PAST) time_ranges = [(start_day, "day"), (start_week, "week"), (start_month, "month")] diff --git a/gracedb/translator.py b/gracedb/translator.py index 9f1a03671..0917b52ac 100644 --- a/gracedb/translator.py +++ b/gracedb/translator.py @@ -43,12 +43,6 @@ def insert_ligolw_tables(xml_filename): out += p.stdout.read() if out.find("OK") != 0: coinc_id = None - try: - f = open('/tmp/foo','a') - f.write("ERROR (stdin): %s\n" % out) - f.write("ERROR (stderr): %s\n" % err) - f.close() - except: pass else: coinc_id = out[2:].strip() return coinc_id -- GitLab