Skip to content

Commit

Permalink
Allow non unique matches in the list.
Browse files Browse the repository at this point in the history
  • Loading branch information
abragtim committed May 5, 2023
1 parent 01dacb0 commit 17948e2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions txmatching/web/api/crossmatch_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ def get_parsing_issues_for_hla_typing(antibody_matches_for_hla_type):
))
return typing_parsing_issues

def get_unique_from_list(lst: list):
# this fancy approach is used to prevent reordering how it would be through the set()
return list(dict.fromkeys(lst).keys())

crossmatch_dto = request_body(CrossmatchDTOIn)
hla_antibodies, antibodies_parsing_issues = get_hla_antibodies_and_parsing_issues(
crossmatch_dto.recipient_antibodies)
Expand All @@ -74,7 +70,6 @@ def get_unique_from_list(lst: list):
self.__fulfill_with_common_matches(antibody_matches_for_hla_type,
crossmatched_antibodies_per_group)

antibody_matches_for_hla_type = get_unique_from_list(antibody_matches_for_hla_type)
antibody_matches_for_hla_type = self.__solve_uncrossmatched_assumed_hla_types(
antibody_matches_for_hla_type, hla_antibodies)

Expand Down

0 comments on commit 17948e2

Please sign in to comment.