Source code :: Spectrograms.htm

[Return]
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
##!/usr/bin/env python

<%page args="shot, page"/>


<%

    import os
    from pygolem_lite.modules import get_page_paths, saveconst
    

    page_path, base_path, page  = get_page_paths(shot, page)
    
    file_list = os.listdir( page_path+'/data')

    from pygolem_lite.modules import make_image

%>

<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>

%if os.path.exists(page_path + '/data'):

    <table >
    
    % for i in range(40):
	    % if os.path.exists(page_path + "/data/spectrogram_"+str(i)+".png"):
		<tr>
		<img src="/${page_path +  '/data/spectrogram_'+str(i)+'.png'}" />
		<img src="/${page_path +  '/data/signal_'+str(i)+'.png'}" />

		##<td>${make_image( page_path, "data/spectrogram_"+str(i)+".png", "Spectrogram "+ str(i) )} </td>
		##<td>${make_image( page_path, "data/signal_"+str(i)+".png", "Signal "+ str(i) )}</td>
		</tr>
	    %endif
    %endfor

    </table >


     
%else:
    <h2>  Missing spectrograms </h2>
    
%endif

Navigation