diff options
author | zsloan | 2022-02-25 21:03:15 +0000 |
---|---|---|
committer | zsloan | 2022-02-25 15:11:38 -0600 |
commit | 8e0fcfa78fcdb5bdd5b49e2b1ac918ae9cc0fc53 (patch) | |
tree | 9e877793205763834765057aceb8d45e9bc1415e /tests/unit/db/test_db.py | |
parent | 7675612a0e7023c22b7b17b3a1ec19cce5641261 (diff) | |
download | genenetwork3-8e0fcfa78fcdb5bdd5b49e2b1ac918ae9cc0fc53.tar.gz |
Fix issue where 0's were treated as False for the primary trait in
correlations
In the original version of the if statement* I believe it was
interpreted as "if a_val and (b_val is not None)". This caused
values of 0 for a_val (the primary trait's values) to be evaluated as
False.
I changed it to compare both a_val and b_val to None. This seems to have
fixed the issue.
* if (a_val and b_val is not None)
Diffstat (limited to 'tests/unit/db/test_db.py')
0 files changed, 0 insertions, 0 deletions