From cfb9801fb07958b0e72aebd55e05faa6ebb2aa65 Mon Sep 17 00:00:00 2001 From: kubantjan Date: Thu, 18 Jan 2024 15:40:26 +0100 Subject: [PATCH] Fixes from review --- local_testing_utilities/export-patients.http | 2 +- local_testing_utilities/notebooks/export_austrian_data.ipynb | 2 +- txmatching/patients/hla_functions.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/local_testing_utilities/export-patients.http b/local_testing_utilities/export-patients.http index 00f9ae512..53e17ed8a 100644 --- a/local_testing_utilities/export-patients.http +++ b/local_testing_utilities/export-patients.http @@ -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 diff --git a/local_testing_utilities/notebooks/export_austrian_data.ipynb b/local_testing_utilities/notebooks/export_austrian_data.ipynb index 1a1d35af0..bcbaa9a32 100644 --- a/local_testing_utilities/notebooks/export_austrian_data.ipynb +++ b/local_testing_utilities/notebooks/export_austrian_data.ipynb @@ -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", diff --git a/txmatching/patients/hla_functions.py b/txmatching/patients/hla_functions.py index 8f5498c6b..526224f9a 100644 --- a/txmatching/patients/hla_functions.py +++ b/txmatching/patients/hla_functions.py @@ -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. ' @@ -410,7 +410,7 @@ def compute_cpra(unacceptable_antibodies: List[HLAAntibodyForCPRA]) -> float: {etrl_login} {etrl_password} - {', '.join(hla_codes_raw_for_cpra_calculation)} + {', '.join(hla_raw_codes_for_cpra_calculation)}