Skip to content

Commit 2cd34b8

Browse files
committed
Corrected a bug with a float vs integer and corrected the key for norm_res.
1 parent f950c3e commit 2cd34b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

structure_threader/wrappers/maverick_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def _ti_test(outdir, log_evidence_mv):
173173
return bestk
174174

175175

176-
def maverick_normalization(x_mean, x_sd, klist, draws=1e6, limit=95):
176+
def maverick_normalization(x_mean, x_sd, klist, draws=int(1e6), limit=95):
177177
"""
178178
Performs TI normalization as in the original implementation from MavericK.
179179
This is essentially a port from the C++ code written by Bob Verity.
@@ -199,7 +199,7 @@ def maverick_normalization(x_mean, x_sd, klist, draws=1e6, limit=95):
199199

200200
# Gather mean and CI values and return them as a single dict.
201201
norm_res = dict(
202-
(i, {"norm_mean": np.mean(z_array[i]),
202+
(k, {"norm_mean": np.mean(z_array[i]),
203203
"lower_limit": np.percentile(z_array[i], l_limit),
204204
"upper_limit": np.percentile(z_array[i], u_limit)})
205205
for i, k in enumerate(klist))

0 commit comments

Comments
 (0)