open-discussion > CLI input/output
Showing 1-1 of 1 posts
Display:
Results per page:
Aug 29, 2017  05:08 PM | Haitham Al-Beik - Waffix LLC
CLI input/output
Hi everyone,

This is a suggestion/idea...

I was wondering if there is a way one could run the app using the command line supplying all the necessary outputs to have it automatically run.

For example — I have a set of 6 sessions that I would want the app to run through with a particular set of settings (could be saved in a config file of sort or passed directly to the app) and then generate the outputs (including the Report File for the volume metrics) instead of going through each one manually via the app.


> BraTumIA.exe --automate-if-config

The automate-config.ini file could look something like:
[automate]

# set true to enable automation
automate=true

[modalities]
# t1
t1=TestData/T1-1.3.12.2.1107.5.2.12.21144.4.0.1616270028002715

# t1c, t1_post
t1c=TestData/T1c-1.3.12.2.1107.5.2.12.21144.4.0.1618194550751071-0-20

# t2, t2_fse
t2=TestData/T2-1.3.12.2.1107.5.2.12.21144.4.0.1616226114791528

# t2f, flair
flair=TestData/T2f-1.3.12.2.1107.5.2.12.21144.4.0.1617133518531229

# leave blank to use t1c
template=TestData/T1-1.3.12.2.1107.5.2.12.21144.4.0.1616270028002715

[output]
output=TestData/output
save_session=TestData/session.txt
report=TestData/report.csv 

With the above configuration the app would run and load the settings above and immediately execute then quits (assuming no errors).

Thoughts?

Best regards,
Haitham