Skip to content

Commit 964339d

Browse files
committed
Makes results parsing more flexible
1 parent 05d7d9a commit 964339d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

structure_threader/plotter/structplot.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,9 @@ def _parse_nousepopinfo(self, fhandle, end_string):
222222
self.indv.append(line.split()[1])
223223

224224
# Get the cluster values
225-
fields = line.strip().split()
226-
cl_vals = [float(x) for x in fields[5:]]
225+
fields = line.strip().split(":")
226+
fields = fields[1].split()
227+
cl_vals = [float(x) for x in fields]
227228

228229
# Here we add the assignment probabilities to the main array.
229230
# If the array alread exits,use vstack to "append" the values

0 commit comments

Comments
 (0)