From 0a2aae2eeeed6037814e0a46c50bbee0e3ba6145 Mon Sep 17 00:00:00 2001 From: Manuel Holtgrewe Date: Wed, 21 Feb 2024 16:55:40 +0100 Subject: [PATCH] fix: issue with truthiness of numpy array --- chew/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chew/stats.py b/chew/stats.py index 07c5208..0915a8d 100644 --- a/chew/stats.py +++ b/chew/stats.py @@ -109,7 +109,7 @@ def compute_sample_stats(container) -> SampleStats: header = extract_header(container) autosomal_fingerprint = container["autosomal_fingerprint"] - if autosomal_fingerprint: + if autosomal_fingerprint is not None: autosomal_mask = autosomal_fingerprint[0] autosomal_is_alt = autosomal_fingerprint[1] autosomal_hom_alt = autosomal_fingerprint[2]