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

gstlal_ll_inspiral_daily_page: update to new summary page stuff

parent 272b53e7
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,7 @@ if __name__ == '__main__':
# Some data reduction happens in parallel
#
pool = Pool(20)
pool = Pool(8)
#
# Parse command line
......@@ -233,7 +233,17 @@ if __name__ == '__main__':
#
try:
subprocess.check_call(["gstlal_inspiral_summary_page", "--open-box", "--output-user-tag", "ALL_LLOID_COMBINED", "--glob-path", "%s" % os.path.join(options.directory, "plots"), "--webserver-dir", options.web_dir, "--title", "gstlal-online"])
webserverplotdir = os.path.join(options.web_dir, "plots")
if os.path.exists(webserverplotdir):
newdir = os.path.join(options.web_dir, str(int(aggregator.now())))
aggregator.makedir(newdir)
shutil.move(webserverplotdir, newdir)
try:
shutil.move(os.path.join(options.web_dir, "index.html"), newdir)
except IOError:
pass
subprocess.check_call(["gstlal_inspiral_summary_page", "--open-box", "--output-user-tag", "ALL_LLOID_COMBINED", "--glob-path", "plots", "--webserver-dir", options.web_dir, "--title", "gstlal-online"])
except subprocess.CalledProcessError as plot_error:
print >> sys.stderr, "plotting failed. recieved error%s...continuing anyway" % plot_error
......
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