##!/usr/bin/python2
## -*- coding: utf-8 -*-
##""" CREATED: 7/2012
##AUTHOR: MICHAL ODSTRCIL
##"""
<%page args="shot, page, default_path"/>
<% base = 'http://golem.fjfi.cvut.cz'
from pygolem_lite import Shot
from pygolem_lite.config import TororoidalMagneticFieldTrigger, TororoidalMagneticFieldCapacitor, CurrentDriveElectricFieldCapacitor, StabilizationCapacitor, BreakDownElectricFieldCapacitor
from pygolem_lite.web import cData
import datetime, cStringIO
from pygolem_lite.web import cat, emph, get_page_paths
page_path, base_path, page = get_page_paths(shot, page, default_path)
get = cData.get_nice
%>
##
Basic parameters (Shot: ${shot}):
##
##- Chamber pressure before gas filling (vacuum pressure): pchinit = ${emph(get('pressure_initial', '%.2f mPa'))}
##${base}/cgi-bin/data/${shot}/pressure_initial
## - Chamber pressure just before the triggering: pchtrig=${emph(get('pressure', '%.2f mPa'))}
##${base}/cgi-bin/data/${shot}/pressure
## - Working gas pressure request: pH2req=${get('pressure_request', '%.2f')} mPa
##${base}/cgi-bin/data/${shot}/pressure_request
## - Chamber temperature: Tch=${get('chamber_temperature', '%.2f')} °C over the room temperature (thermocouple)
##${base}/cgi-bin/data/${shot}/chamber_temperature
##- Chamber inductance: Lch= ${get('chamber_inductance', '%.2f μH', 1e6)}
##${base}/cgi-bin/data/${shot}/chamber_inductance
## - Chamber resistance: Rch= ${get('chamber_resistance', '%.3f Ω')}
##${base}/cgi-bin/data/${shot}/chamber_resistance
## - CBt capacitors ${get('Cb', '%.1f', 1e3)} mF) charged to: ${emph('%i V'%get('Ub'))}, triggered ${get('Tb','%.1f ms', 1e3)}
##${base}/cgi-bin/data/${shot}/Ub
##${base}/cgi-bin/data/${shot}/Tb
##- CBD capacitors ${get('Cbd', '%.1f', 1e3)} mF) charged to: ${emph(get('Ubd', '%i V'))}, triggered ${get('Tbd','%.1f ms', 1e3)}
##${base}/cgi-bin/data/${shot}/Ubd
##${base}/cgi-bin/data/${shot}/Tbd
##- CCD capacitors ${get('Ccd', '%.1f', 1e3)} mF) charged to: ${emph(get('Ucd', '%i V'))}, triggered ${get('Tcd','%.1f ms', 1e3)}
##${base}/cgi-bin/data/${shot}/Ucd
##${base}/cgi-bin/data/${shot}/Tcd
##- CST capacitors ${get('Cst', '%.1f', 1e3)} mF) charged to: ${emph(get('Ust', '%i V'))}, triggered ${ get('Tst','%.1f ms', 1e3) }
##${base}/cgi-bin/data/${shot}/Ust
##${base}/cgi-bin/data/${shot}/Tst
##- charging log: t, UB, UBD, UCD, UDS, pchamber
##${base}/${shot}/nabijeni/Time_AD4ETHb
##- Time since session beginning: ${str(datetime.timedelta(seconds=int(get('session_length'))))} h
##
Diagnostics:
% if get('plasma', '%.2f') == "1":
Plasma created!
See more details about the pygolem interface
${cData.get_pygolem_list()}
<%
das_list = []
for i in sorted(cData.das_config.keys()):
if cData.get_data(i, testRun = True):
das_list += [i]
%>
${cData.get_pygolem_das(das_list)}