Source code :: Tomography

[Return]
[Download]##!/usr/bin/env python <%page args="shot, page"/> <% import os from pygolem.modules import cat, emph, get_page_paths page_path, base_path, page = get_page_paths(shot, page) print "=====================", page_path,"=", page youtube = "tomography/youtube_url" correct = False tomo="tomography/" %> <% from pygolem import Shot, set_backend, change_data_root set_backend('http-cache-npy') change_data_root('tmp/') Data = Shot(shot) %> % if os.path.exists(page_path+'/'+youtube): <iframe width='480' height='390' src=${cat(page_path+'/'+youtube)} frameborder='0' allowfullscreen></iframe> % endif % if os.path.exists(page_path+'/'+tomo): <br/><br/> <img src='tomography/detectors.png'></img><br/> <img src='tomography/positionX.png'></img><br/> <img src='tomography/positionY.png'></img><br/> <img src='tomography/TotalPower.png'></img><br/> <h3>Singular value decomposition</h3>" <img src='tomography/SVD.png'></img><br/> %endif % if not os.path.exists(page_path+'/'+tomo) and os.path.exists(page_path+'/tomo_working'): <h2> Computing tomography, wait .... (max 10 min.)</h2> %elif not os.path.exists(page_path+'/'+tomo) and not Data['plasma']: <h2> No plasma</h2> %elif not os.path.exists(page_path+'/'+tomo) and not os.path.exists(page_path+'/tomo_working') and Data['plasma']: <h2> Tomography not accessible</h2> %endif[Return]

Navigation