Skip to content

Commit 079891c

Browse files
committed
Fix undefined error
1 parent d9a30f9 commit 079891c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/P1_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def coxen_multi_drug_gene_selection(
271271
try:
272272
res = mod.fit()
273273
pvalue[i, 0] = res.pvalues[1]
274-
except Error:
274+
except ValueError:
275275
pvalue[i, 0] = 1
276276

277277
gid1 = np.argsort(pvalue[:, 0])[:num_predictive_gene]

0 commit comments

Comments
 (0)