Skip to content

Commit 8edbb4c

Browse files
committed
Corrects a bug with population sorting. Fixes #75
1 parent c56e212 commit 8edbb4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

structure_threader/plotter/structplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ def _parse_indfile(self, indfile):
590590
# third column, if it is available
591591
if indarray.shape[1] == 3:
592592
self._sort_qvals_pop(indarray=indarray)
593-
indarray = indarray[indarray[:, 2].argsort()]
593+
indarray = indarray[indarray[:, 2].astype(int).argsort()]
594594
# Sort the population list according to the new order
595595
npops = list(OrderedDict.fromkeys(indarray[:, 1]))
596596

0 commit comments

Comments
 (0)