Changeset 30
- Timestamp:
- May 20, 2014 3:21:19 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/templates/skygenerator.html
r17 r30 3 3 <% 4 4 import collections 5 import matplotlib.pyplot as plt6 5 import os.path 7 6 8 7 skygenerator = context['data']['skygenerator'] 9 8 frequency_axis = skygenerator['frequency axis'] 10 spatial_axis = skygenerator['spatial axis']11 9 sources = skygenerator['sources'] 12 10 %> … … 39 37 context_copy['wn'] = wn 40 38 context_copy['iwn'] = iwn 39 context_copy['stagename'] = 'skygenerator' 40 context_copy['resultname'] = 'sky model' 41 41 f.write(template.render(**context_copy)) 42 42 … … 49 49 context_copy = context.kwargs 50 50 context_copy['sourceid'] = sourceid 51 context_copy['spectrum'] = context['data']['skygenerator']['sources']\ 52 [sourceid]['spectrum'] 53 51 54 f.write(template.render(**context_copy)) 52 55 %> … … 62 65 <div class="col-xs-6 col-md-3"> 63 66 <a href="skymodelplane${wn}.html" class="thumbnail"> 64 <img src="sky modelplane${wn}.png" alt="...">67 <img src="sky_modelplane${wn}.png" alt="..."> 65 68 <div> 66 69 <h4>${wnformatted}</h4>
Note:
See TracChangeset
for help on using the changeset viewer.