Changeset 30


Ignore:
Timestamp:
May 20, 2014 3:21:19 PM (10 years ago)
Author:
JohnLightfoot
Message:

various improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/skygenerator.html

    r17 r30  
    33<%
    44import collections
    5 import matplotlib.pyplot as plt
    65import os.path
    76
    87skygenerator = context['data']['skygenerator']
    98frequency_axis = skygenerator['frequency axis']
    10 spatial_axis = skygenerator['spatial axis']
    119sources = skygenerator['sources']
    1210%>
     
    3937        context_copy['wn'] = wn
    4038        context_copy['iwn'] = iwn
     39        context_copy['stagename'] = 'skygenerator'
     40        context_copy['resultname'] = 'sky model'
    4141        f.write(template.render(**context_copy))
    4242
     
    4949        context_copy = context.kwargs
    5050        context_copy['sourceid'] = sourceid
     51        context_copy['spectrum'] = context['data']['skygenerator']['sources']\
     52          [sourceid]['spectrum']
     53
    5154        f.write(template.render(**context_copy))
    5255%>
     
    6265  <div class="col-xs-6 col-md-3">
    6366    <a href="skymodelplane${wn}.html" class="thumbnail">
    64       <img src="skymodelplane${wn}.png" alt="...">
     67      <img src="sky_modelplane${wn}.png" alt="...">
    6568      <div>
    6669        <h4>${wnformatted}</h4>
Note: See TracChangeset for help on using the changeset viewer.