Skip to content

Commit

Permalink
rename to find_xx_from_serology
Browse files Browse the repository at this point in the history
  • Loading branch information
pbashyal-nmdp committed Feb 28, 2024
1 parent bfb4c27 commit 8a33013
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyard/ard.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ def find_associated_antigen(self, serology) -> str:
return self.serology_mapping.find_associated_antigen(serology)

@functools.lru_cache()
def find_associated_xx_from_serology(self, serology):
def find_xx_from_serology(self, serology):
if self.is_serology(serology):
return db.find_xx_for_serology(self.db_connection, serology)
raise InvalidAlleleError(f"{serology} is not a valid serology")
Expand Down
4 changes: 1 addition & 3 deletions tests/steps/redux_allele.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,7 @@ def step_impl(context, validity):

@when("finding the XX version of the serology")
def step_impl(context):
context.xx_version = context.ard_non_strict.find_associated_xx_from_serology(
context.allele
)
context.xx_version = context.ard_non_strict.find_xx_from_serology(context.allele)


@then("the XX version is {XX}")
Expand Down

0 comments on commit 8a33013

Please sign in to comment.