1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_creaGM/scripts/00600_PushData.bbs
4 # ----------------------------------
7 # ----------------------
16 description "Description ??"
19 new wx:CommandButton Box01
20 set Box01.Label "7. Push and Exit"
22 new wx:OutputText Box03
23 set Box03.Title "Core"
25 new creaVtk:OutputWindow Box05
27 new wx:LayoutCenter Box06
28 set Box06.WinTitle "With Proxy"
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"
36 new std:ExecSystemCommand Box08
40 new std:MagicBox Box11
42 new wx:LayoutLine Box12
44 new wx:InputText Box13
45 set Box13.Title "Proxy User"
47 new wx:InputTextPassword Box14
48 set Box14.Title "Proxy Passwword"
50 new wx:LayoutTab Box15
52 new wx:CommandButton Box17
53 set Box17.Label "7. Push and Exit"
55 new wx:OutputText Box18
57 new wx:LayoutCenter Box19
59 new wx:LayoutLine Box26
60 set Box26.WinTitle "No Proxy"
62 new std:ConcatStrings Box27
63 set Box27.In1 " set https_proxy=https://"
65 set Box27.In5 "@proxy2-hcl.chu-lyon.fr:80"
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 "
73 new std:ConcatStrings Box32
74 set Box32.In1 " upload "
77 set Box32.In5 " --reuse "
79 new std:MagicBox Box35
81 new std:ReplaceString Box36
82 set Box36.Replace "6187823d34933039d3c8edba"
83 set Box36.Search "Study_B"
85 new std:ReplaceString Box37
86 set Box37.Replace "618e3d0b34933039d3c8ee34"
87 set Box37.Search "Study_A"
89 new std:ReplaceString Box39
90 set Box39.Replace "6187824a34933039d3c8edbb"
91 set Box39.Search "Study_C"
93 new std:MagicBox Box40
95 new std:ReplaceString Box45
99 new std:ReplaceString Box46
100 set Box46.Replace " "
103 new std:StringWriter Box47
106 new std:ConcatStrings Box48
107 set Box48.In2 "/Push.dat"
109 new std:ConcatStrings Box53
110 set Box53.In1 "/<CORE>/davila/<ALGO>/Test_01/<PATIENT>/Condition_01"
112 new std:ReplaceString Box54
113 set Box54.Search "<CORE>"
115 new std:ReplaceString Box55
116 set Box55.Search "<PATIENT>"
118 new std:ConcatStrings Box56
119 set Box56.In2 "/results/"
121 new wx:OutputText Box58
122 set Box58.Title "Patient"
124 new wx:OutputText Box59
125 set Box59.Title "Core"
127 new wx:OutputText Box60
128 set Box60.Title "Patient"
130 new std:ReplaceString Box61
133 new std:ReplaceString Box62
136 new std:MultipleInputs Box63
138 new std:ConcatStrings Box67
139 set Box67.In2 "/.tmp/"
141 new std:ExecSystemCommand Box69
143 new std:Configuration Box74
145 new std:StringSelect Box76
148 new std:MultipleInputs Box77
150 new std:ReplaceString Box78
151 set Box78.Replace "00300_Filter"
152 set Box78.Search "<ALGO>"
154 new std:ReplaceString Box79
155 set Box79.Replace "00100_OriginalImages"
156 set Box79.Search "<ALGO>"
158 new std:ReplaceString Box80
159 set Box80.Replace "00200_InitialParameters"
160 set Box80.Search "<ALGO>"
162 new std:ConcatStrings Box91
163 set Box91.In2 "/results/"
165 new std:ConcatStrings Box92
166 set Box92.In2 "/results/"
168 new std:ConcatStrings Box93
171 new std:StringSelect Box94
172 set Box94.In0 "rm -rf "
174 set Box94.In2 "rm -rf "
176 new std:ConcatStrings Box95
179 new std:ExecSystemCommand Box97
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"
186 new std:ConcatStrings Box99
192 connect Box12.Widget Box06.Widget2
194 connect Box15.Widget Box07.Widget1
196 connect Box18.Widget Box26.Widget1
198 connect Box14.Out Box27.In4
200 connect Box13.Out Box27.In2
202 connect Box30.Out Box08.In
204 connect Box32.Out Box30.In8
206 connect Box37.Out Box36.In
208 connect Box36.Out Box39.In
210 connect Box46.Out Box45.In
212 connect Box45.Out Box37.In
214 connect Box40.Out Box46.In
216 connect Box48.Out Box47.FileName
221 connect Box40.Out Box54.Replace
223 connect Box53.Out Box54.In
225 connect Box54.Out Box55.In
227 connect Box11.Out Box56.In1
229 connect Box01.Widget Box12.Widget8
231 connect Box14.Widget Box12.Widget6
233 connect Box13.Widget Box12.Widget4
235 connect Box03.Widget Box12.Widget1
237 connect Box58.Widget Box12.Widget2
239 connect Box19.Widget Box26.Widget8
241 connect Box60.Widget Box26.Widget5
243 connect Box59.Widget Box26.Widget3
245 connect Box40.Out Box61.In
247 connect Box61.Out Box03.In
249 connect Box61.Out Box59.In
251 connect Box35.Out Box62.In
253 connect Box62.Out Box60.In
255 connect Box62.Out Box58.In
257 connect Box39.Out Box32.In2
259 connect Box08.BoxChange Box63.In3
261 connect Box47.BoxChange Box63.In5
263 connect Box09.BoxChange Box63.In9
265 connect Box11.Out Box67.In1
267 connect Box17.Widget Box19.Widget2
269 connect Box69.BoxChange Box63.In8
271 connect Box35.Out Box55.Replace
273 connect Box15.Selection Box76.In
275 connect Box27.Out Box76.In1
277 connect Box76.Out Box30.In2
279 connect Box26.Widget Box15.Widget1
281 connect Box06.Widget Box15.Widget2
283 connect Box01.BoxChange Box77.In1
285 connect Box17.BoxChange Box77.In2
287 connect Box77.BoxChange Box63.BoxExecute
289 connect Box55.Out Box78.In
291 connect Box55.Out Box79.In
293 connect Box55.Out Box80.In
295 connect Box78.Out Box56.In3
297 connect Box56.Out Box48.In1
299 connect Box56.Out Box18.In
301 connect Box11.Out Box92.In1
303 connect Box11.Out Box91.In1
305 connect Box79.Out Box92.In3
307 connect Box80.Out Box91.In3
309 connect Box93.Out Box32.In4
311 connect Box67.Out Box93.In1
313 connect Box40.Out Box93.In2
315 connect Box74.SystemType Box94.In
317 connect Box94.Out Box95.In1
319 connect Box67.Out Box95.In3
321 connect Box40.Out Box95.In4
323 connect Box95.Out Box69.In
325 connect Box97.BoxChange Box63.In2
327 connect Box74.SystemType Box98.In
329 connect Box98.Out Box99.In1
331 connect Box11.Out Box99.In3
333 connect Box40.Out Box99.In5
335 connect Box35.Out Box99.In7
337 connect Box99.Out Box97.In
341 # Complex input ports
342 input BaseDir Box11.In " "
343 input CoreID Box40.In " "
344 input PatientID Box35.In " "