Source code :: Outputs

[Return]
[Download]##!/usr/bin/env python <%page args="shot, page"/> <% import os from pygolem.modules import cat, emph, get_page_paths page_path, base_path, page = get_page_paths(shot, page) print "=====================", page_path,"=", page correct = False %> <% from pygolem import Shot, set_backend, change_data_root set_backend('http-cache-npy') change_data_root('tmp/') Data = Shot(shot) %> % for camera in range(2): % if os.path.exists(page_path+'/'+str(camera)+'/plasma_all.png'): <h2>Camera ${camera} - time evolution</h2> <h3>Parameters:</h3> <% params = cat(page_path+'/'+str(camera)+'/parameters.txt', [], True) %> <ul> %for line in params: <li>${line} </li> %endfor </ul> <h3>ALL</h3> <img src='${camera}/plasma_all.png'></img><br/> <h3>RED</h3> <img src='${camera}/plasma_red.png'></img><br/> <h3>GREEN</h3> <img src='${camera}/plasma_green.png'></img><br/> <h3>BLUE</h3> <img src='${camera}/plasma_blue.png'></img><br/> <% correct = True %> %endif %endfor % if not Data['plasma'] and not correct: <h2>No plasma</h2> %elif not correct: <h2>Camera failed</h2> %endif[Return]

Navigation