Changeset 65
- Timestamp:
- Sep 23, 2014 1:19:51 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/templates/beamsgenerator.html
r17 r65 33 33 # construct html pages with primary beam plots 34 34 for wn in wavenumbers: 35 link = os.path.join(context['dirname'], 'primary beam%s.html' % (wn))35 link = os.path.join(context['dirname'], 'primary_beam%s.html' % (wn)) 36 36 with open(link, 'w') as f: 37 template = mylookup.get_template(' primarybeamplot.html')37 template = mylookup.get_template('beamplot.html') 38 38 context_copy = context.kwargs 39 39 context_copy['wn'] = wn 40 context_copy['beamtype'] = 'primary beam' 40 41 f.write(template.render(**context_copy)) 41 42 42 43 # construct html pages with dirty beam plots 43 44 for wn in wavenumbers: 44 link = os.path.join(context['dirname'], 'dirty beam%s.html' % (wn))45 link = os.path.join(context['dirname'], 'dirty_beam%s.html' % (wn)) 45 46 with open(link, 'w') as f: 46 template = mylookup.get_template(' dirtybeamplot.html')47 template = mylookup.get_template('beamplot.html') 47 48 context_copy = context.kwargs 48 49 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 54 for 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' 49 61 f.write(template.render(**context_copy)) 50 62 %> … … 59 71 %> 60 72 <div class="col-xs-6 col-md-3"> 61 <a href="primary beam${wn}.html" class="thumbnail">62 <img src="primary beam${wn}.png" alt="...">73 <a href="primary_beam${wn}.html" class="thumbnail"> 74 <img src="primary_beam${wn}.png" alt="..."> 63 75 <div> 64 76 <h4>${wnformatted}</h4> … … 76 88 %> 77 89 <div class="col-xs-6 col-md-3"> 78 <a href="dirty beam${wn}.html" class="thumbnail">79 <img src="dirty beam${wn}.png" alt="...">90 <a href="dirty_beam${wn}.html" class="thumbnail"> 91 <img src="dirty_beam${wn}.png" alt="..."> 80 92 <div> 81 93 <h4>${wnformatted}</h4> … … 85 97 % endfor 86 98 </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.