Skip to content

Commit

Permalink
fixed issue where the key name has not been declared in name2cuis2sta…
Browse files Browse the repository at this point in the history
…tus (#479)

Co-authored-by: adam-sutton-1992 <[email protected]>
  • Loading branch information
2 people authored and mart-r committed Oct 14, 2024
1 parent a2fa514 commit a72747b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion medcat/utils/cdb_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def merge_cdb(cdb1: CDB,
names = dict()
for name in cdb2.cui2names[cui]:
names[name] = {'snames': cdb2.cui2snames.get(cui, set()), 'is_upper': cdb2.name_isupper.get(name, False), 'tokens': {}, 'raw_name': cdb2.get_name(cui)}
name_status = cdb2.name2cuis2status.get(name, 'A').get(cui, 'A') # get the name status if it exists, default to 'A'
name_status = cdb2.name2cuis2status.get(name, {}).get(cui, 'A') # get the name status if it exists, default to 'A'
# For addl_info check cui2original_names as they MUST be added
ontologies = set()
description = ''
Expand Down

0 comments on commit a72747b

Please sign in to comment.