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