Source code :: Outputs.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
##!/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

Navigation