-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
148 lines (84 loc) · 3.62 KB
/
Copy pathREADME
File metadata and controls
148 lines (84 loc) · 3.62 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# IMASViz
**IMASViz** is a visualization tool developed within
**Integrated Modelling Analysis Suite** (**IMAS**) for the purposes of
visualizing static and dynamic IMAS data, stored within IMAS
**Interface Data Structures** (**IDSs**).
Copyright holders : Commissariat � l�Energie Atomique et aux Energies Alternatives (CEA), France;
and Laboratory for Engineering Design - LECAD, University of Ljubljana, Slovenia
CEA and LECAD authorize the use of the METIS software under the CeCILL-C open source license https://cecill.info/licences/Licence_CeCILL-C_V1-en.html
The terms and conditions of the CeCILL-C license are deemed to be accepted upon downloading the software and/or exercising any of the rights granted under the CeCILL-C license.
## Installing and launching IMASViz from sources
### Requirements
IMASViz is only compatible with the python HLI hosted at ssh://git@git.iter.org/imas/al-python.git
IMASViz is NOT compatible with IMAS-python hosted at https://github.com/iterorganization/IMAS-Python.git
IMASViz requires the following libraries:
- IMAS
- Python3.x and the following Python libraries:
- PyQt5
- pyqtgraph
- matplotlib
- Sphinx
(pip3 install sphinx)
- Sphinx RTD theme
(pip3 install sphinx_rtd_theme)
### Obtaining the source code
Clone the IMASViz repository from **https://github.com/IRFM/IMASViz.git**.
By default, the main branch will be created.
To switch to the develop branch:
git checkout develop
### Setting the environment
To set the environment, go to **viz** directory and set **VIZ_HOME**
and **VIZ_PRODUCTION** environment variables by executing the following
commands:
cd viz
# bash
export VIZ_PRODUCTION=1
export VIZ_HOME=$PWD
export UDA_DISABLED=1 #disable UDA
# csh
setenv VIZ_PRODUCTION 1
setenv VIZ_HOME $PWD
setenv UDA_DISABLED 1 #disable UDA
IMASViz requires generated Python files parsers built from the IMAS Data Dictionary.
(these files are generated to folder $HOME/.imasviz/VizGeneratedCode/).
This is done by executing make command from the $VIZ_HOME directory:
# Main command
make
### Configuring UDA
1. The IMAS access layer used by IMASViz should support UDA for accessing remote UDA servers.
2. The file 'UDA_machines' located in directory $VIZ_HOME/config lists all tokamaks with remote UDA servers which
can be accessed from the current machine where IMASViz is installed.
Please refers to the documentation for the required prerequisites for accessing a particular remote UDA server.
### Running IMASViz from sources
module load IMAS
python $VIZ_HOME/imasviz/VizGUI/QtVIZ_GUI.py
### Installing and browsing IMASViz documentation
**IMASViz documentation** can be generated to multiple formats, e.g. **HTML**, **PDF**...
In $VIZ_HOME directory execute:
make doc
# to open PDF documentation
xdg-open doc/build/latex/IMASViz.pdf
# to open HTML documentation
firefox doc/build/html/index.html
## Running IMASViz from installed modules on Gateway and ITER HPC
### GateWay HPC
Load the following modules:
module load cineca
module load imasenv
Check the installed IMASViz modules:
module available imas-viz
Load a specific version of IMASViz, for example:
module load imas-viz/2.3.7
### ITER HPC
Load the IMAS module:
module load IMAS
Check the installed IMASViz modules:
module available Viz
Load a specific version of IMASViz, for example:
module load Viz/2.3.7-intel-2018a-Python-3.6.4
### Launching IMASViz
To launch **IMASViz**, execute the following command:
viz
### IMASViz documentation
To browse IMASViz documentation, just type:
viz_doc