1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /Users/davila/Creatis/C11/creatools_source/creaMiniTools/appli/template_creaPatientsSystem/scripts/00600_PushData.bbs
4 # ----------------------------------
7 # ----------------------
17 description "Description ??"
20 new wx:CommandButton Box01
21 set Box01.Label "7. Push and Exit"
23 new wx:OutputText Box03
24 set Box03.Title "Core"
26 new creaVtk:OutputWindow Box05
28 new wx:LayoutCenter Box06
29 set Box06.WinTitle "With Proxy"
31 new wx:LayoutLine Box07
32 set Box07.WinDialog "true"
33 set Box07.WinHeight "500"
34 set Box07.WinTitle "00600_PushData.bbs"
35 set Box07.WinWidth "800"
37 new std:ExecSystemCommand Box08
41 new std:MagicBox Box11
43 new wx:LayoutLine Box12
45 new wx:InputText Box13
46 set Box13.Title "Proxy User"
48 new wx:InputTextPassword Box14
49 set Box14.Title "Proxy Passwword"
51 new wx:LayoutTab Box15
53 new wx:CommandButton Box17
54 set Box17.Label "7. Push and Exit"
56 new wx:OutputText Box18
58 new wx:LayoutCenter Box19
60 new wx:LayoutLine Box26
61 set Box26.WinTitle "No Proxy"
63 new std:ConcatStrings Box27
64 set Box27.In1 " set https_proxy=https://"
66 set Box27.In5 "@proxy2-hcl.chu-lyon.fr:80"
69 new std:ConcatStrings Box30
70 set Box30.In1 "export GIRDER_API_KEY=DJn22j9xJUMjcHeWLanPXRrHTqRpXd20UXtKaB9S && "
71 set Box30.In5 " girder-client "
72 set Box30.In7 "--api-url https://myriad.creatis.insa-lyon.fr:443/api/v1 "
74 new std:ConcatStrings Box32
75 set Box32.In1 " upload "
78 set Box32.In5 " --reuse "
80 new std:MagicBox Box35
82 new std:ReplaceString Box36
83 set Box36.Replace "6187823d34933039d3c8edba"
84 set Box36.Search "Study_B"
86 new std:ReplaceString Box37
87 set Box37.Replace "618e3d0b34933039d3c8ee34"
88 set Box37.Search "Study_A"
90 new std:ReplaceString Box39
91 set Box39.Replace "6187824a34933039d3c8edbb"
92 set Box39.Search "Study_C"
94 new std:MagicBox Box40
96 new std:ReplaceString Box45
100 new std:ReplaceString Box46
101 set Box46.Replace " "
104 new std:ConcatStrings Box48
105 set Box48.In2 "/Step06_PushDB.txt"
107 new std:ConcatStrings Box53
108 set Box53.In1 "/<CORE>/davila/<ALGO>/Test_01/<PATIENT>/Condition_01"
110 new std:ReplaceString Box54
111 set Box54.Search "<CORE>"
113 new std:ReplaceString Box55
114 set Box55.Search "<PATIENT>"
116 new std:ConcatStrings Box56
117 set Box56.In2 "/results/"
119 new wx:OutputText Box58
120 set Box58.Title "Patient"
122 new wx:OutputText Box59
123 set Box59.Title "Core"
125 new wx:OutputText Box60
126 set Box60.Title "Patient"
128 new std:ReplaceString Box61
131 new std:ReplaceString Box62
134 new std:MultipleInputs Box63
136 new std:ConcatStrings Box67
137 set Box67.In2 "/.tmp/"
139 new std:ExecSystemCommand Box69
141 new std:Configuration Box74
143 new std:StringSelect Box76
146 new std:MultipleInputs Box77
148 new std:ReplaceString Box78
149 set Box78.Replace "00300_Filter"
150 set Box78.Search "<ALGO>"
152 new std:ReplaceString Box79
153 set Box79.Replace "00100_OriginalImages"
154 set Box79.Search "<ALGO>"
156 new std:ReplaceString Box80
157 set Box80.Replace "00200_InitialParameters"
158 set Box80.Search "<ALGO>"
160 new std:ConcatStrings Box91
161 set Box91.In2 "/results/"
163 new std:ConcatStrings Box92
164 set Box92.In2 "/results/"
166 new std:ConcatStrings Box93
169 new std:StringSelect Box94
170 set Box94.In0 "rm -rf "
172 set Box94.In2 "rm -rf "
174 new std:ConcatStrings Box95
177 new std:ExecSystemCommand Box97
179 new std:StringSelect Box98
180 set Box98.In0 "source 00610_CreateTmp.sh"
181 set Box98.In1 "00610_CreateTmp.bat"
182 set Box98.In2 "source 00610_CreateTmp.sh"
184 new std:ConcatStrings Box99
189 new std:ConcatStrings Box88
191 new creaMiniTools:WriteStatePatientSystem Box89
192 set Box89.State "Finish"
195 connect Box12.Widget Box06.Widget2
197 connect Box15.Widget Box07.Widget1
199 connect Box18.Widget Box26.Widget1
201 connect Box14.Out Box27.In4
203 connect Box13.Out Box27.In2
205 connect Box30.Out Box08.In
207 connect Box32.Out Box30.In8
209 connect Box37.Out Box36.In
211 connect Box36.Out Box39.In
213 connect Box46.Out Box45.In
215 connect Box45.Out Box37.In
217 connect Box40.Out Box46.In
222 connect Box40.Out Box54.Replace
224 connect Box53.Out Box54.In
226 connect Box54.Out Box55.In
228 connect Box11.Out Box56.In1
230 connect Box01.Widget Box12.Widget8
232 connect Box14.Widget Box12.Widget6
234 connect Box13.Widget Box12.Widget4
236 connect Box03.Widget Box12.Widget1
238 connect Box58.Widget Box12.Widget2
240 connect Box19.Widget Box26.Widget8
242 connect Box60.Widget Box26.Widget5
244 connect Box59.Widget Box26.Widget3
246 connect Box40.Out Box61.In
248 connect Box61.Out Box03.In
250 connect Box61.Out Box59.In
252 connect Box35.Out Box62.In
254 connect Box62.Out Box60.In
256 connect Box62.Out Box58.In
258 connect Box39.Out Box32.In2
260 connect Box08.BoxChange Box63.In3
262 connect Box09.BoxChange Box63.In9
264 connect Box11.Out Box67.In1
266 connect Box17.Widget Box19.Widget2
268 connect Box69.BoxChange Box63.In8
270 connect Box35.Out Box55.Replace
272 connect Box15.Selection Box76.In
274 connect Box27.Out Box76.In1
276 connect Box76.Out Box30.In2
278 connect Box26.Widget Box15.Widget1
280 connect Box06.Widget Box15.Widget2
282 connect Box01.BoxChange Box77.In1
284 connect Box17.BoxChange Box77.In2
286 connect Box77.BoxChange Box63.BoxExecute
288 connect Box55.Out Box78.In
290 connect Box55.Out Box79.In
292 connect Box55.Out Box80.In
294 connect Box78.Out Box56.In3
296 connect Box56.Out Box48.In1
298 connect Box56.Out Box18.In
300 connect Box11.Out Box92.In1
302 connect Box11.Out Box91.In1
304 connect Box79.Out Box92.In3
306 connect Box80.Out Box91.In3
308 connect Box93.Out Box32.In4
310 connect Box67.Out Box93.In1
312 connect Box40.Out Box93.In2
314 connect Box74.SystemType Box94.In
316 connect Box94.Out Box95.In1
318 connect Box67.Out Box95.In3
320 connect Box40.Out Box95.In4
322 connect Box95.Out Box69.In
324 connect Box97.BoxChange Box63.In2
326 connect Box74.SystemType Box98.In
328 connect Box98.Out Box99.In1
330 connect Box11.Out Box99.In3
332 connect Box40.Out Box99.In5
334 connect Box35.Out Box99.In7
336 connect Box99.Out Box97.In
339 connect Box88.Out Box89.User
341 connect Box48.Out Box89.Filename
343 connect Box89.boxChange Box63.In4
347 # Complex input ports
348 input BaseDir Box11.In " "
349 input CoreID Box40.In " "
350 input PatientID Box35.In " "
351 input creaUser Box88.In1 " "