Skip to content

Commit

Permalink
Fixed call to calcmats
Browse files Browse the repository at this point in the history
  • Loading branch information
bbfrederick committed Jan 10, 2023
1 parent 990a2cc commit 23bb144
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions capcalc/scripts/capfromtcs
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ if clustertype == "kmeans":
allstatestats.append(thestats)
for i in range(n_clusters):
alllenlists[i] += lenlist[i]
normtransmat, offdiagtransmat = calcmats(rawtransmat, n_clusters)
normtransmat, offdiagtransmat = capcalc_utils.calcmats(rawtransmat, n_clusters)
init_img = nib.Nifti1Image(normtransmat, outputaffine)
init_hdr = init_img.header
init_sizes = init_hdr["pixdim"]
Expand Down Expand Up @@ -1087,7 +1087,9 @@ if clustertype == "kmeans":
overallrawtransmat = rawtransmat[0] * 0.0
for segment in range(numsegs):
overallrawtransmat += rawtransmat[segment]
overallnormtransmat, overalloffdiagtransmat = calcmats(overallrawtransmat, n_clusters)
overallnormtransmat, overalloffdiagtransmat = capcalc_utils.calcmats(
overallrawtransmat, n_clusters
)
init_img = nib.Nifti1Image(overallnormtransmat, outputaffine)
init_hdr = init_img.header
init_sizes = init_hdr["pixdim"]
Expand Down

0 comments on commit 23bb144

Please sign in to comment.