Skip to content

Commit

Permalink
Fixes from review
Browse files Browse the repository at this point in the history
  • Loading branch information
kubantjan committed Jan 18, 2024
1 parent 53dead6 commit cfb9801
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion local_testing_utilities/export-patients.http
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ PUT {{url}}/v1/public/patient-upload
Authorization: Bearer {{auth_token}}
Content-Type: application/json

< /home/honza/Downloads/Austrian Data 012024/wien_export.json
< tmp.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"metadata": {},
"outputs": [],
"source": [
"path = \"/home/honza/Downloads/Austrian Data 012024\"\n",
"path = \"\"\n",
"donor_blood_group_file = \"\"\n",
"txm_event_name = \"44-TXM-2024-01\"\n",
"# starting_pattern = \"W-\"\n",
Expand Down
4 changes: 2 additions & 2 deletions txmatching/patients/hla_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def compute_cpra(unacceptable_antibodies: List[HLAAntibodyForCPRA]) -> float:
We compute cPRA even if the http://ETRL.ORG/ endpoint has VPRA in it,
but according to the consultation with Matěj Röder, these terms are equivalent for us.
"""
hla_codes_raw_for_cpra_calculation = [antibody_for_cpra.code_sent_to_calculator for antibody_for_cpra in unacceptable_antibodies]
hla_raw_codes_for_cpra_calculation = [antibody_for_cpra.code_sent_to_calculator for antibody_for_cpra in unacceptable_antibodies]
etrl_login, etrl_password = os.getenv('ETRL_LOGIN'), os.getenv('ETRL_PASSWORD')
if not etrl_login or not etrl_password:
raise ValueError('http://ETRL.ORG/ login or password not found. '
Expand All @@ -410,7 +410,7 @@ def compute_cpra(unacceptable_antibodies: List[HLAAntibodyForCPRA]) -> float:
<VirtualPRA xmlns="http://ETRL.ORG/">
<sUserName>{etrl_login}</sUserName>
<sPassWord>{etrl_password}</sPassWord>
<sUnacceptables>{', '.join(hla_codes_raw_for_cpra_calculation)}</sUnacceptables>
<sUnacceptables>{', '.join(hla_raw_codes_for_cpra_calculation)}</sUnacceptables>
</VirtualPRA>
</soap:Body>
</soap:Envelope>
Expand Down

0 comments on commit cfb9801

Please sign in to comment.