From 90b33261217bd9c37af3240b886ab37a53fd7f00 Mon Sep 17 00:00:00 2001 From: Ahsan Date: Sat, 19 Feb 2022 13:16:52 -0500 Subject: [PATCH] fixed empty array bug --- nanocaller_src/snpCaller.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nanocaller_src/snpCaller.py b/nanocaller_src/snpCaller.py index eae5a96..9b1f4c3 100644 --- a/nanocaller_src/snpCaller.py +++ b/nanocaller_src/snpCaller.py @@ -115,11 +115,14 @@ def test_model(params,pool): for res in result: pos,test_ref,x_test,dp,freq=res - test_ref=test_ref.astype(np.float16) - completed+=1 + completed+=1 if len(pos)==0: continue + + + test_ref=test_ref.astype(np.float16) + x_test=x_test.astype(np.float32)