Skip to content

Commit

Permalink
Move CSA normalization models to ./data/ at the root of the SCT repo (
Browse files Browse the repository at this point in the history
#3821)

Co-authored-by: Julian McGinnis <julian.mcginnis@park-depot.de>
  • Loading branch information
jqmcginnis and Julian McGinnis committed Jun 29, 2022
1 parent 1f2749a commit df9a633
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion install_sct
Expand Up @@ -672,7 +672,6 @@ if [[ -n "$NO_DATA_INSTALL" ]]; then
else
# Download data
print info "Installing data..."
run rm -rf "$SCT_DIR/$DATA_DIR"
run mkdir -p "$SCT_DIR/$DATA_DIR"
for data in PAM50 gm_model optic_models pmj_models deepseg_sc_models deepseg_gm_models deepseg_lesion_models c2c3_disc_models; do
run sct_download_data -d "$data"
Expand Down
2 changes: 1 addition & 1 deletion spinalcordtoolbox/scripts/sct_process_segmentation.py
Expand Up @@ -444,7 +444,7 @@ def main(argv=None):
# Normalize CSA values (MEAN(area))
if arguments.normalize is not None:
data_subject = pd.DataFrame([arguments.normalize])
path_model = os.path.join(__sct_dir__, 'spinalcordtoolbox', 'data', 'csa_normalization_models',
path_model = os.path.join(__sct_dir__, 'data', 'csa_normalization_models',
'_'.join(sorted(data_subject.columns)) + '.csv')
if not os.path.isfile(path_model):
raise parser.error('Invalid choice of predictors in -normalize. Please specify sex and brain-volume or sex, brain-volume and thalamus-volume.')
Expand Down

0 comments on commit df9a633

Please sign in to comment.