Skip to content

Commit

Permalink
Add missing self argument (#343)
Browse files Browse the repository at this point in the history
To `_refset_df2dict ` method in Snomed preprocessing
  • Loading branch information
mart-r committed Sep 4, 2023
1 parent eec6b5a commit 54d8a6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion medcat/utils/preprocess_snomed.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'.
Expand Down

0 comments on commit 54d8a6d

Please sign in to comment.