Source code :: Flukes.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
##!/usr/bin/python2
## -*- coding: utf-8 -*-

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

<%
    from numpy import load, log10
    from pygolem_lite.web import get_page_paths, make_image, make_zoom_image
    page_path, base_path, page  = get_page_paths(shot, page)
    from  pygolem_lite import Shot
%>

<h4>Graphs (signal was smoothed !!):  <a href="main.py">[Source]</a></h4>

${make_image( 'flukes' , 'Flukes')}

%try:
    <%flukes = load(page_path + '/config.npy')%>
    % for i in range(len(flukes)):
	<h4> Fluke ${i} - ${flukes[i]['measuring']} </h4>
	<ul>
	<li> Range: +- ${flukes[i]["maximum"]} A
	<li> Sensitivity: ${5 * 10 ** -(log10(flukes[i]["maximum"] / 6) + 1)   * 1e3} mV / 1A
	</ul>
    % endfor
%except:
    <h3> Loading of flukes failed </h4>
%endtry


${Shot(shot).get_pygolem_list(['current_toroidal_coils', 'current_cd_coils', 'current_breakdown_coils', 'current_stabilization_coils'])}

Navigation