Skip to content
Snippets Groups Projects
Commit 43cc68e4 authored by Chad Hanna's avatar Chad Hanna
Browse files

gstlal_ll_inspiral_daily_page: save plot directories

parent 890bda61
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@
"""Meta program to generate offline style summary pages from online runs."""
import sys, os, subprocess, re, time, shutil
import sys, os, subprocess, re, time
from optparse import OptionParser
from glue.text_progress_bar import ProgressBar
from pylal.datatypes import LIGOTimeGPS
......@@ -142,7 +142,7 @@ progressbar.increment()
# Make plots and such
if os.path.exists(os.path.join(options.directory, "plots")):
shutil.rmtree(os.path.join(options.directory, "plots"))
os.rename(os.path.join(options.directory, "plots"), "%s.%s" % (os.path.join(options.directory, "plots"), str(now())))
os.mkdir(os.path.join(options.directory, "plots"))
pattern = re.compile("(?P<id>[0-9]{4})_prior.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