Skip to content

Commit 5478a73

Browse files
committed
minimise diff
1 parent b42241e commit 5478a73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc3/sampling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1527,7 +1527,7 @@ def _choose_chains(traces, tune):
15271527
raise ValueError("Not enough samples to build a trace.")
15281528

15291529
idxs = np.argsort(lengths)
1530-
l_sort = lengths[idxs]
1530+
l_sort = np.array(lengths)[idxs]
15311531

15321532
use_until = np.argmax(l_sort * np.arange(1, l_sort.shape[0] + 1)[::-1])
15331533
final_length = l_sort[use_until]

0 commit comments

Comments
 (0)