]> Creatis software - creaMiniTools.git/blob - appli/template_creaPatientsSystem/scripts/00600_PushData.bbs
3421 template_creaPatientsSystem
[creaMiniTools.git] / appli / template_creaPatientsSystem / scripts / 00600_PushData.bbs
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 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include wx
12 include creaVtk
13 include std
14 include creaMiniTools
15
16 author "Author ??"
17 description "Description ??"
18 category "<VOID>"
19
20 new wx:CommandButton Box01
21   set Box01.Label "7. Push and Exit"
22
23 new wx:OutputText Box03
24   set Box03.Title "Core"
25
26 new creaVtk:OutputWindow Box05
27
28 new wx:LayoutCenter Box06
29   set Box06.WinTitle "With Proxy"
30
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"
36
37 new std:ExecSystemCommand Box08
38
39 new std:Exit Box09
40
41 new std:MagicBox Box11
42
43 new wx:LayoutLine Box12
44
45 new wx:InputText Box13
46   set Box13.Title "Proxy User"
47
48 new wx:InputTextPassword Box14
49   set Box14.Title "Proxy Passwword"
50
51 new wx:LayoutTab Box15
52
53 new wx:CommandButton Box17
54   set Box17.Label "7. Push and Exit"
55
56 new wx:OutputText Box18
57
58 new wx:LayoutCenter Box19
59
60 new wx:LayoutLine Box26
61   set Box26.WinTitle "No Proxy"
62
63 new std:ConcatStrings Box27
64   set Box27.In1 " set https_proxy=https://"
65   set Box27.In3 ":"
66   set Box27.In5 "@proxy2-hcl.chu-lyon.fr:80"
67   set Box27.In6 "&&  "
68
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  "
73
74 new std:ConcatStrings Box32
75   set Box32.In1 " upload "
76   set Box32.In2 "XXXXX"
77   set Box32.In3 "   "
78   set Box32.In5 "   --reuse  "
79
80 new std:MagicBox Box35
81
82 new std:ReplaceString Box36
83   set Box36.Replace "6187823d34933039d3c8edba"
84   set Box36.Search "Study_B"
85
86 new std:ReplaceString Box37
87   set Box37.Replace "618e3d0b34933039d3c8ee34"
88   set Box37.Search "Study_A"
89
90 new std:ReplaceString Box39
91   set Box39.Replace "6187824a34933039d3c8edbb"
92   set Box39.Search "Study_C"
93
94 new std:MagicBox Box40
95
96 new std:ReplaceString Box45
97   set Box45.Replace " "
98   set Box45.Search "/"
99
100 new std:ReplaceString Box46
101   set Box46.Replace " "
102   set Box46.Search "\"
103
104 new std:ConcatStrings Box48
105   set Box48.In2 "/Step06_PushDB.txt"
106
107 new std:ConcatStrings Box53
108   set Box53.In1 "/<CORE>/davila/<ALGO>/Test_01/<PATIENT>/Condition_01"
109
110 new std:ReplaceString Box54
111   set Box54.Search "<CORE>"
112
113 new std:ReplaceString Box55
114   set Box55.Search "<PATIENT>"
115
116 new std:ConcatStrings Box56
117   set Box56.In2 "/results/"
118
119 new wx:OutputText Box58
120   set Box58.Title "Patient"
121
122 new wx:OutputText Box59
123   set Box59.Title "Core"
124
125 new wx:OutputText Box60
126   set Box60.Title "Patient"
127
128 new std:ReplaceString Box61
129   set Box61.Search "/"
130
131 new std:ReplaceString Box62
132   set Box62.Search "/"
133
134 new std:MultipleInputs Box63
135
136 new std:ConcatStrings Box67
137   set Box67.In2 "/.tmp/"
138
139 new std:ExecSystemCommand Box69
140
141 new std:Configuration Box74
142
143 new std:StringSelect Box76
144   set Box76.In0 "  "
145
146 new std:MultipleInputs Box77
147
148 new std:ReplaceString Box78
149   set Box78.Replace "00300_Filter"
150   set Box78.Search "<ALGO>"
151
152 new std:ReplaceString Box79
153   set Box79.Replace "00100_OriginalImages"
154   set Box79.Search "<ALGO>"
155
156 new std:ReplaceString Box80
157   set Box80.Replace "00200_InitialParameters"
158   set Box80.Search "<ALGO>"
159
160 new std:ConcatStrings Box91
161   set Box91.In2 "/results/"
162
163 new std:ConcatStrings Box92
164   set Box92.In2 "/results/"
165
166 new std:ConcatStrings Box93
167   set Box93.In3 "/*"
168
169 new std:StringSelect Box94
170   set Box94.In0 "rm -rf "
171   set Box94.In1 "del "
172   set Box94.In2 "rm -rf "
173
174 new std:ConcatStrings Box95
175   set Box95.In2 "  "
176
177 new std:ExecSystemCommand Box97
178
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"
183
184 new std:ConcatStrings Box99
185   set Box99.In2 "  "
186   set Box99.In4 "  "
187   set Box99.In6 "  "
188
189 new std:ConcatStrings Box88
190
191 new creaMiniTools:WriteStatePatientSystem Box89
192   set Box89.State "Finish"
193
194
195 connect Box12.Widget Box06.Widget2
196
197 connect Box15.Widget Box07.Widget1
198
199 connect Box18.Widget Box26.Widget1
200
201 connect Box14.Out Box27.In4
202
203 connect Box13.Out Box27.In2
204
205 connect Box30.Out Box08.In
206
207 connect Box32.Out Box30.In8
208
209 connect Box37.Out Box36.In
210
211 connect Box36.Out Box39.In
212
213 connect Box46.Out Box45.In
214
215 connect Box45.Out Box37.In
216
217 connect Box40.Out Box46.In
218
219
220
221
222 connect Box40.Out Box54.Replace
223
224 connect Box53.Out Box54.In
225
226 connect Box54.Out Box55.In
227
228 connect Box11.Out Box56.In1
229
230 connect Box01.Widget Box12.Widget8
231
232 connect Box14.Widget Box12.Widget6
233
234 connect Box13.Widget Box12.Widget4
235
236 connect Box03.Widget Box12.Widget1
237
238 connect Box58.Widget Box12.Widget2
239
240 connect Box19.Widget Box26.Widget8
241
242 connect Box60.Widget Box26.Widget5
243
244 connect Box59.Widget Box26.Widget3
245
246 connect Box40.Out Box61.In
247
248 connect Box61.Out Box03.In
249
250 connect Box61.Out Box59.In
251
252 connect Box35.Out Box62.In
253
254 connect Box62.Out Box60.In
255
256 connect Box62.Out Box58.In
257
258 connect Box39.Out Box32.In2
259
260 connect Box08.BoxChange Box63.In3
261
262 connect Box09.BoxChange Box63.In9
263
264 connect Box11.Out Box67.In1
265
266 connect Box17.Widget Box19.Widget2
267
268 connect Box69.BoxChange Box63.In8
269
270 connect Box35.Out Box55.Replace
271
272 connect Box15.Selection Box76.In
273
274 connect Box27.Out Box76.In1
275
276 connect Box76.Out Box30.In2
277
278 connect Box26.Widget Box15.Widget1
279
280 connect Box06.Widget Box15.Widget2
281
282 connect Box01.BoxChange Box77.In1
283
284 connect Box17.BoxChange Box77.In2
285
286 connect Box77.BoxChange Box63.BoxExecute
287
288 connect Box55.Out Box78.In
289
290 connect Box55.Out Box79.In
291
292 connect Box55.Out Box80.In
293
294 connect Box78.Out Box56.In3
295
296 connect Box56.Out Box48.In1
297
298 connect Box56.Out Box18.In
299
300 connect Box11.Out Box92.In1
301
302 connect Box11.Out Box91.In1
303
304 connect Box79.Out Box92.In3
305
306 connect Box80.Out Box91.In3
307
308 connect Box93.Out Box32.In4
309
310 connect Box67.Out Box93.In1
311
312 connect Box40.Out Box93.In2
313
314 connect Box74.SystemType Box94.In
315
316 connect Box94.Out Box95.In1
317
318 connect Box67.Out Box95.In3
319
320 connect Box40.Out Box95.In4
321
322 connect Box95.Out Box69.In
323
324 connect Box97.BoxChange Box63.In2
325
326 connect Box74.SystemType Box98.In
327
328 connect Box98.Out Box99.In1
329
330 connect Box11.Out Box99.In3
331
332 connect Box40.Out Box99.In5
333
334 connect Box35.Out Box99.In7
335
336 connect Box99.Out Box97.In
337
338
339 connect Box88.Out Box89.User
340
341 connect Box48.Out Box89.Filename
342
343 connect Box89.boxChange Box63.In4
344
345
346
347 # Complex input ports
348 input BaseDir Box11.In " "
349 input CoreID Box40.In " "
350 input PatientID Box35.In " "
351 input creaUser Box88.In1 " "
352 exec Box05
353 exec Box07