Skip to content

Commit

Permalink
Merge pull request #9 from SPMIC-UoN/xpy
Browse files Browse the repository at this point in the history
bug fix: was saving left scalar map prediction as left and right results
  • Loading branch information
swarrington1 authored Dec 9, 2024
2 parents 7494d67 + d53b433 commit 477924b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xtract_divergence
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ elif cmode == 'translate':
tempmask = maskb[b_nvert_l:bpb_info.nvert]
map_pred_r[tempmask == 0] = 0
template_surf = nib.load(target_maps[1])
save_surf(map_pred_l, os.path.join(out, f'{names[0]}_to_{names[1]}_scalar_prediction_{metric}'), template_surf, 'R')
save_surf(map_pred_r, os.path.join(out, f'{names[0]}_to_{names[1]}_scalar_prediction_{metric}'), template_surf, 'R')
elif cmode == 'wb_div':
foutname = os.path.join(out, f'{names[0]}_to_{names[1]}_{metric}.dscalar.nii')
div = div_wholebrain(temp_bpa, temp_bpb, bpb, maskb, measure=metric, num_cores=argsa.ncores, outname=foutname)
Expand Down

0 comments on commit 477924b

Please sign in to comment.