Skip to content

Commit

Permalink
Merge branch 'master' into issue/LSSTDESC#128
Browse files Browse the repository at this point in the history
  • Loading branch information
yymao committed Dec 5, 2018
2 parents 74ac8c3 + e913357 commit 2cfac02
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 5 deletions.
2 changes: 2 additions & 0 deletions descqaweb/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@
Full details about the catalogs and tests, and how to contribute, are available <a href="https://confluence.slac.stanford.edu/x/Z0uKDQ" target="_blank">here</a> (collaborators only).
The source code of DESCQA is hosted in <a href="https://github.com/LSSTDESC/descqa/" target="_blank">this GitHub repo</a>.
'''

use_latest_run_as_home = False
13 changes: 8 additions & 5 deletions descqaweb/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,11 @@ def run():

print(env.get_template('header.html').render(full_header=True, please_wait=True, config=config))
sys.stdout.flush()
print(env.get_template('matrix.html').render(**prepare_matrix(
run=_run,
catalog_prefix=form.getfirst('catalog_prefix'),
test_prefix=form.getfirst('test_prefix'),
)))
if _run or getattr(config, 'use_latest_run_as_home', True):
print(env.get_template('matrix.html').render(**prepare_matrix(
run=_run,
catalog_prefix=form.getfirst('catalog_prefix'),
test_prefix=form.getfirst('test_prefix'),
)))
else:
print(env.get_template('home.html').render(general_info=config.general_info))
29 changes: 29 additions & 0 deletions descqaweb/templates/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<div class="homeinfo">
<h3>{{ general_info }}
<br><br>

<span style="color:red;">Apologies! We are in the process of revamping this front page!</span><br>
If you have ideas to contribute, please comment in <a class="everblue" href="https://github.com/LSSTDESC/descqa/issues/160">LSSTDESC/descqa#160</a>.<br><br>

In the meantime, if you are looking for results from specific catalogs or tests,
you can use the search features in the <a class="everblue" href="?run=all">list of all runs</a>.<br>
Here are a few examples:<br>
<ul>
<li><a class="everblue" href="?users=kovacs&catalogs=cosmoDC2_v1.1.4&run=all&months=6">cosmoDC2 v1.1.4 (for Run 2.1)</a></li>
<li><a class="everblue" href="?users=kovacs&catalogs=cosmoDC2_v1.0&run=all&months=6">cosmoDC2 v1.0 (for Run 2.0)</a></li>
<li><a class="everblue" href="?users=kovacs&catalogs=proto-dc2_v3.0&run=all&months=12">protoDC2 v3.0 (for Run 1.2)</a></li>
<li><a class="everblue" href="?users=kovacs&catalogs=proto-dc2_v2.1.2&run=all&months=12">protoDC2 v2.1.2 (for Run 1.1)</a></li>
</ul>
<br>

When navigating the DESCQA tests, you may find the following links useful:<br>
<ul>
<li><a class="everblue" href="https://github.com/LSSTDESC/gcr-catalogs#available-catalogs">List of available catalogs</a> (that can be accessed by DESCQA), including a brief description of each catalog</li>
<li><a class="everblue" href="https://github.com/LSSTDESC/descqa/tree/master/descqa/configs">List of available DESCQA tests</a> (each yaml file has a "description" field)</li>
<li><a class="everblue" href="https://confluence.slac.stanford.edu/display/LSSTDESC/DC2+Data+Product+Overview">DC2 Data Product Overview</a> (confluence log-in required)</a></li>
</ul>

</h3>
<script>document.getElementById("pleasewait").style.display="none";</script>
</body>
</html>

0 comments on commit 2cfac02

Please sign in to comment.