<%
# 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