From 2fb2230ab6a24c45f45bfd52c0543c7ef54a8a91 Mon Sep 17 00:00:00 2001 From: mart-r Date: Tue, 29 Aug 2023 10:38:33 +0100 Subject: [PATCH] Add missing self argument --- medcat/utils/preprocess_snomed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/medcat/utils/preprocess_snomed.py b/medcat/utils/preprocess_snomed.py index 5e65b3a77..3ba94b977 100644 --- a/medcat/utils/preprocess_snomed.py +++ b/medcat/utils/preprocess_snomed.py @@ -327,7 +327,7 @@ def _check_path_and_release(self): raise FileNotFoundError('Incorrect path to SNOMED CT directory') return paths, snomed_releases - def _refset_df2dict(refset_df: pd.DataFrame) -> dict: + def _refset_df2dict(self, refset_df: pd.DataFrame) -> dict: """ This function takes a SNOMED refset DataFrame as an input and converts it into a dictionary. The DataFrame should contain the columns 'referencedComponentId','mapTarget','mapGroup','mapPriority','mapRule','mapAdvice'.