Source code :: All spectra.php

[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
###!/usr/bin/python2
### -*- coding: utf-8 -*-

##""" CREATED: 7/2012
    ##AUTHOR: TOMAS ODSTRCIL
##"""

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

<%
    import os
    from pygolem_lite.utilities import cat
    from pygolem_lite.web import make_image,  emph, get_page_paths
    page_path, base_path, page  = get_page_paths(shot, page)

%>


<%
    from pygolem_lite import Shot
    cData = Shot(shot)
%>


% if not cData['plasma'] :
    <h2>No plasma</h2>
%endif

## Graphs

% for i in range(15):  # maximally 15 slices !!
    <%img_path = "data/spectra.txt_Graph_" + str(i)%>
    ${make_image(  img_path   , "Spectra "+str(i))}
%endfor

Navigation