##!/usr/bin/env python
<%page args="shot, page"/>
<%
import os
from pygolem_lite import saveconst
from pygolem_lite.web import make_image, get_page_paths
page_path, base_path, page = get_page_paths(shot, page)
%>
<h3> All signals: </h3>
<h4><a href="main.py"> [Source 1]</a>, <a href="_extend.py"> [Source 2]</a>, <a href="cwt.py"> [Source 3]</a></h4>
##${page_path + '/graphs'}
##%if os.path.exists(page_path + '/graphs'):
##<% file_list = os.listdir( page_path+'/graphs') %>
<table >
% for i in range(4):
##% if os.path.exists(page_path + "/graphs/spectrogram_"+str(i)+".png"):
<tr>
<img src="/${page_path + '/graphs/spectrogram_'+str(i)+'.png'}" />
<img src="/${page_path + '/graphs/signal_'+str(i)+'.png'}" />
</tr>
##%endif
%endfor
</table >
##%else:
##<h2> Missing spectrograms </h2>
##%endif