Changes for page Widget PSE

Last modified by teodoramisan on 2023/07/21 14:55

From version 22.1
edited by teodoramisan
on 2023/07/21 12:53
Change comment: There is no comment for this version
To version 11.1
edited by teodoramisan
on 2023/07/21 11:35
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -8,7 +8,8 @@
8 8  
9 9  The simulation can be customized by:
10 10  
11 -* Getting a list of connectivities and an HPC configuration given as APIs
11 +* Getting a list of connectivities given as API
12 +* Setting up a configuration for HPC launch
12 12  * Setting up parameters and ranges
13 13  * Selecting multiple metrics
14 14  * Observing the progress of the launch by a monitor progress bar
... ... @@ -15,7 +15,7 @@
15 15  
16 16  == **Inputs** ==
17 17  
18 -* PSELauncher(Simulator, List of Connectivities, HPC Configuration)
19 +* PSELauncher(Simulator, List_of_Connectivities)
19 19  * PSEVisualizer(Filename), the file will contain all the customized parameters from the launcher
20 20  
21 21  == **Requirements and installation** ==
... ... @@ -57,30 +57,15 @@
57 57  from tvb.simulator.lab import *
58 58  )))
59 59  
60 - The launcher widget can be initialized with more parameters: a simulator, a list of connectivities and an HPC configuration (only the simulator being a required argument).
61 + The launcher widget can be initialized with the required parameters (simulator and the list of connectivities) as it shows below:
61 61  
62 - For HPC launch, besides the configuration part, an EBrains token needs to be stored. A custom initialization, which includes the HPC launch, is shown below:
63 -
64 64  (% class="box" %)
65 65  (((
66 -os.environ['CLB_AUTH'] = 'PUT YOUR EBRAINS TOKEN HERE IF YOU WANT HPC RUNS'
67 -
68 -from pyunicore.helpers.jobs import Resources
69 -res = Resources(cpus_per_node=4)
70 -
71 - # !! Pay attention to env name and dir you might need to change if in conflict on the SAME project with another colleague of yours!!
72 -
73 -hpc_config = HPCConfig(site="JUSUF", project="icei-hbp-2021-0007", 
74 - env_dir="tvb_widget", env_name="venv_tvb", n_threads=None, resources=res)
75 -)))
76 -
77 -(% class="box" %)
78 -(((
79 79  sim = simulator.Simulator(connectivity = connectivity.Connectivity.from_file())
80 80  conn_66 = connectivity.Connectivity.from_file("connectivity_66.zip")
81 81  conn_68 = connectivity.Connectivity.from_file("connectivity_68.zip")
82 82  conn_76 = connectivity.Connectivity.from_file()
83 -launch = PSELauncher(sim, [conn_66, conn_68, conn_76], hpc_config)
69 +launch = PSELauncher(sim, [conn_66, conn_68, conn_76])
84 84  )))
85 85  
86 86  The outcome will be something like in the image bellow.
... ... @@ -88,26 +88,12 @@
88 88  
89 89  [[image:setup_parameters.png||alt="setup_parameters" style="float:left"]]
90 90  
91 -
92 -
93 -
94 -
95 -
96 -
97 -
98 -
99 -
100 -
101 101  Then, a file name has to be inserted in the indicated box(for storing the data) and as a last set-up, a launch type has to be chosen.
102 102  
79 +[[image:launch.png||alt="launch" style="float:left"]]
103 103  
104 -The progress of the launch can be monitored by a progress bar (as shown below) and the data used for the HPC launch will be stored in a .toml file available besides the notebooks.
81 +A file with the name you specified will be generated.
105 105  
106 -(% style="text-align:center" %)
107 -[[image:image-20230721151330-2.png||alt="progress-bar.png"]]
108 -
109 -A file with the name you specified will be generated in both approaches, HPC or local launch.
110 -
111 111  Then, the PSEVisualizer can be called with the required parameter(file_name) as it shows below:
112 112  
113 113  (% class="box" %)
image-20230721151330-2.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.teodoramisan
Size
... ... @@ -1,1 +1,0 @@
1 -21.4 KB
Content
launch.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.teodoramisan
Size
... ... @@ -1,0 +1,1 @@
1 +236.9 KB
Content
Public

TVB Widgets