Skip to content

Commit

Permalink
fix: issue with truthiness of numpy array (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe authored Feb 21, 2024
1 parent b104c05 commit 698d2a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chew/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 698d2a0

Please sign in to comment.