Closed sophie22 closed 1 year ago
one unit test in the test_hazenlib
is failing due to lack of raising exception in main
. I think this test is safe to remove and also to not include an Exception when user provides an optional argument that is not available for the selected task. I think it is okay to 'silently' ignore not applicable CLI args, it is more important to correctly parse and use the ones provided that are actually relevant to the task.
Coverage Report
Tests | Skipped | Failures | Errors | Time |
---|---|---|---|---|
218 | 0 :zzz: | 0 :x: | 0 :fire: | 2m 56s :stopwatch: |
Coverage Report
Tests | Skipped | Failures | Errors | Time |
---|---|---|---|---|
218 | 0 :zzz: | 0 :x: | 0 :fire: | 2m 47s :stopwatch: |
--report
is not available for the relaxometry task and --show_rois
, --show_template_fit
and --show_relax_fits
are not currently generating images due to the way matplotlib is configured in utils.py
. I opened a new issue #360 for these, and since it's not directly related to the purpose of this PR focusing on the CLI usage interface, I think this PR is ready for review and potentially merging.
Simplify and clear up the usage instructions for docopt and consequently had to change how the arguments are parsed to set off the correct tasks to run.
resolves #307