Changeset 65


Ignore:
Timestamp:
Sep 23, 2014 1:19:51 PM (10 years ago)
Author:
JohnLightfoot
Message:

added clean beams

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/beamsgenerator.html

    r17 r65  
    3333# construct html pages with primary beam plots
    3434for wn in wavenumbers:
    35     link = os.path.join(context['dirname'], 'primarybeam%s.html' % (wn))
     35    link = os.path.join(context['dirname'], 'primary_beam%s.html' % (wn))
    3636    with open(link, 'w') as f:
    37         template = mylookup.get_template('primarybeamplot.html')
     37        template = mylookup.get_template('beamplot.html')
    3838        context_copy = context.kwargs
    3939        context_copy['wn'] = wn
     40        context_copy['beamtype'] = 'primary beam'
    4041        f.write(template.render(**context_copy))
    4142
    4243# construct html pages with dirty beam plots
    4344for wn in wavenumbers:
    44     link = os.path.join(context['dirname'], 'dirtybeam%s.html' % (wn))
     45    link = os.path.join(context['dirname'], 'dirty_beam%s.html' % (wn))
    4546    with open(link, 'w') as f:
    46         template = mylookup.get_template('dirtybeamplot.html')
     47        template = mylookup.get_template('beamplot.html')
    4748        context_copy = context.kwargs
    4849        context_copy['wn'] = wn
     50        context_copy['beamtype'] = 'dirty beam'
     51        f.write(template.render(**context_copy))
     52
     53# construct html pages with clean beam plots
     54for wn in wavenumbers:
     55    link = os.path.join(context['dirname'], 'clean_beam%s.html' % (wn))
     56    with open(link, 'w') as f:
     57        template = mylookup.get_template('beamplot.html')
     58        context_copy = context.kwargs
     59        context_copy['wn'] = wn
     60        context_copy['beamtype'] = 'clean beam'
    4961        f.write(template.render(**context_copy))
    5062%>
     
    5971    %>
    6072  <div class="col-xs-6 col-md-3">
    61     <a href="primarybeam${wn}.html" class="thumbnail">
    62       <img src="primarybeam${wn}.png" alt="...">
     73    <a href="primary_beam${wn}.html" class="thumbnail">
     74      <img src="primary_beam${wn}.png" alt="...">
    6375      <div>
    6476        <h4>${wnformatted}</h4>
     
    7688    %>
    7789  <div class="col-xs-6 col-md-3">
    78     <a href="dirtybeam${wn}.html" class="thumbnail">
    79       <img src="dirtybeam${wn}.png" alt="...">
     90    <a href="dirty_beam${wn}.html" class="thumbnail">
     91      <img src="dirty_beam${wn}.png" alt="...">
    8092      <div>
    8193        <h4>${wnformatted}</h4>
     
    8597% endfor
    8698</div>
     99
     100<h3>Clean Beams</h3>
     101<div class="row">
     102% for wn in context['data']['beamsgenerator']['clean beam'].keys():
     103    <%
     104    wnformatted = '%6.4gcm-1' % wn
     105    %>
     106  <div class="col-xs-6 col-md-3">
     107    <a href="clean_beam${wn}.html" class="thumbnail">
     108      <img src="clean_beam${wn}.png" alt="...">
     109      <div>
     110        <h4>${wnformatted}</h4>
     111      </div>
     112    </a>
     113  </div>
     114% endfor
     115</div>
Note: See TracChangeset for help on using the changeset viewer.