Skip to content

Commit 62b9fd2

Browse files
committed
fix mamba err mk4
1 parent a69221d commit 62b9fd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/grabplddt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
for struct in glob.glob(path):
88
all_structs[struct] = AFDB_tools.descr(struct)
99
#unpack scipy stats describe object into a dictionary
10-
all_structs[struct] = { k:v for k,v in zip( ['nobs', 'minmax', 'mean', 'variance', 'skewness', 'kurtosis'], [ float(x) for x in list(all_structs[struct])] ) }
10+
all_structs[struct] = { k:v for k,v in zip( ['nobs', 'minmax', 'mean', 'variance', 'skewness', 'kurtosis'], [ float(x) if type(x) is not tuple else (float(x[0]),float(x[1])) for x in list(all_structs[struct])] ) }
1111
#write to log file
1212
with open(snakemake.log[0], 'w' ) as lfout:
1313
lfout.write(str(all_structs))

0 commit comments

Comments
 (0)