Skip to content

Commit e3ecb6e

Browse files
committed
better method/variable names
1 parent 05a52fd commit e3ecb6e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pyvdrm/asi2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ def __bool__(self):
7777
class Negate(AsiExpr):
7878
"""Unary negation of boolean child"""
7979
def __call__(self, mutations):
80-
child = self.children[0](mutations)
81-
if child is None:
80+
child_score = self.children[0](mutations)
81+
if child_score is None:
8282
return Score(True, []) # TODO: propagate negative residues
83-
return Score(not child.score, child.residues)
83+
return Score(not child_score.score, child_score.residues)
8484

8585

8686
class AndExpr(AsiExpr):

pyvdrm/tests/test_asi2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def test_score_from(self):
5151
rule = ASI2("SCORE FROM ( 100G => 10, 101D => 20 )")
5252
self.assertEqual(rule(VariantCalls("100G 102G")), 10)
5353

54-
def test_score_from(self):
54+
def test_score_negate(self):
5555
rule = ASI2("SCORE FROM ( NOT 100G => 10, NOT 101SD => 20 )")
5656
self.assertEqual(rule(VariantCalls("100G 102G")), 20)
5757
self.assertEqual(rule(VariantCalls("100S 101S")), 10)

0 commit comments

Comments
 (0)