##!/usr/bin/env python
<%page args="shot, page"/>
<%
import os
from pygolem_lite.web import cat, emph, get_page_paths, make_config
page_path, base_path, page = get_page_paths(shot, page)
%>
<%
from pygolem_lite import Shot
cData = Shot(shot)
%>
% for camera in [1,2]:
<?php
if (file_exists("${ str(camera)+'/CorrectedRGB.png' }")) {
?>
##% if os.path.exists(page_path+'/'+str(camera)+'/plasma_all.png'):
<h2>Camera ${camera} - time evolution</h2>
<h3>Parameters:</h3>
${make_config(page_path+'/'+str(camera)+'/parameters.txt')}
<h3>ALL</h3>
<img src='${camera}/CorrectedRGB.png'></img><br/>
<h3>RED</h3>
<img src='${camera}/CorrectedR.png'></img><br/>
<h3>GREEN</h3>
<img src='${camera}/CorrectedG.png'></img><br/>
<h3>BLUE</h3>
<img src='${camera}/CorrectedB.png'></img><br/>
<?php
###%endif
}
?>
%endfor
##% if not cData['plasma'] :
##<h2>No plasma</h2>
##%else:
##<?php
##if ( ! file_exists('1/') && ! file_exists('2/')) {
##echo " <h2>Camera failed</h2>";
##}
##?>
##%endif