Source code :: Homepage
[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
youtube = "tomography/youtube_url"
correct = False
%>
<%
from pygolem import Shot, set_backend, change_data_root
set_backend('http-cache-npy')
change_data_root('tmp/')
Data = Shot(shot)
%>
<img src="schema_server.png" />
% if os.path.exists(page_path+'/'+youtube):
<h3>Visible spectra tomography</h3>
<iframe width='480' height='390' src=${cat(page_path+'/'+youtube)} frameborder='0' allowfullscreen></iframe>
% endif
% 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>Corrected image</h3>
<img src='${camera}/CorrectedRGB.png'></img><br/>
<h3>Original image</h3>
<img src='${camera}/plasma_all.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]