Changes for page Widget PSE
Last modified by teodoramisan on 2023/07/21 14:55
From version 20.1
edited by teodoramisan
on 2023/07/21 12:19
on 2023/07/21 12:19
Change comment:
There is no comment for this version
To version 24.1
edited by teodoramisan
on 2023/07/21 14:55
on 2023/07/21 14:55
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -101,10 +101,10 @@ 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 103 103 104 -The progress of the launch can be monitored by a progress bar ,as shown below: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 notebook. 105 105 106 106 (% style="text-align:center" %) 107 -[[image:image-20230721150 554-1.png]]107 +[[image:image-20230721151330-2.png||alt="progress-bar.png"]] 108 108 109 109 A file with the name you specified will be generated in both approaches, HPC or local launch. 110 110 ... ... @@ -112,7 +112,14 @@ 112 112 113 113 (% class="box" %) 114 114 ((( 115 -pse = PSEWidget("test.h5") 115 +import os.path 116 + 117 +file_name = "test.h5" 118 + 119 +if os.path.exists(file_name): 120 + pse = PSEWidget(file_name) 121 +else: 122 + print(f"File {file_name} needs to exist!") 116 116 ))) 117 117 118 118 The outcome will be something like in the image bellow.