Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display vertebral levels when provided with
-perslice 1
(#4004)
* change if condition for arg assignement * add vertgroup for perslice * remove deflault value of -vertfile * remove blank line * `sct_process_segmentation`: Add `default=''` to `-vert` Without this, currently the default value of `argumnets.vert` is `None`. By adding this line, it makes it so that the default value of `arguments.vert` will be an empty list (`[]`). * `sct_process_segmentation`: Restore the default of `-vertfile` This allows users to specify `-vert` by itself, assuming they've run `sct_warp_template` and generated the level file in the working directory. * `sct_process_segmentation`: Remove the `vertfile` conditional Instead of manually setting `vert` to `[]` and `vertfile` to `None`, we can just rely on their default values. * `sct_process_segmentation`: Add existence check for `-vertfile` Without this check, `aggregate_per_slice_or_level` will try to generate vertebral level information on a nonexistent file. Co-authored-by: Joshua Newton <joshuacwnewton@gmail.com>
- Loading branch information
1 parent
a3d052b
commit 2d09af3
Showing
2 changed files
with
17 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters