<%inherit file="base.html"/> <% import collections import matplotlib.pyplot as plt import os.path mylookup = context['mylookup'] beamsgenerator = context['data']['beamsgenerator'] wavenumbers = beamsgenerator['primary beam'].keys() %>

Beam Generation Parameters

% for k,v in beamsgenerator.items(): % if not isinstance(v, collections.Iterable): % endif % endfor
${k} ${v}
<% # construct html pages with primary beam plots for wn in wavenumbers: link = os.path.join(context['dirname'], 'primarybeam%s.html' % (wn)) with open(link, 'w') as f: template = mylookup.get_template('primarybeamplot.html') context_copy = context.kwargs context_copy['wn'] = wn f.write(template.render(**context_copy)) # construct html pages with dirty beam plots for wn in wavenumbers: link = os.path.join(context['dirname'], 'dirtybeam%s.html' % (wn)) with open(link, 'w') as f: template = mylookup.get_template('dirtybeamplot.html') context_copy = context.kwargs context_copy['wn'] = wn f.write(template.render(**context_copy)) %>

Primary Beams

% for wn in context['data']['beamsgenerator']['primary beam'].keys(): <% wnformatted = '%6.4gcm-1' % wn %> % endfor

Dirty Beams

% for wn in context['data']['beamsgenerator']['dirty beam'].keys(): <% wnformatted = '%6.4gcm-1' % wn %> % endfor