From 540224c3057c3d636533e326fd3e51336d435068 Mon Sep 17 00:00:00 2001 From: Mart Ratas Date: Wed, 28 Aug 2024 14:32:50 +0100 Subject: [PATCH] CU-8695j1be2: Remove deprecated method on CDB (#481) * CU-8695j1be2: Remove deprecated method on CDB * CU-8695j1be2: Remove unused import due to removal of deprecated method --- medcat/cdb.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/medcat/cdb.py b/medcat/cdb.py index 2b640845..3961fc92 100644 --- a/medcat/cdb.py +++ b/medcat/cdb.py @@ -13,7 +13,6 @@ from medcat.utils.matutils import unitvec from medcat.utils.ml_utils import get_lr_linking from medcat.config import Config, workers -from medcat.utils.decorators import deprecated from medcat.utils.saving.serializer import CDBSerializer from medcat.utils.config_utils import get_and_del_weighted_average_from_config from medcat.utils.config_utils import default_weighted_average @@ -148,11 +147,6 @@ def update_cui2average_confidence(self, cui: str, new_sim: float) -> None: (self.cui2count_train.get(cui, 0) + 1) self.is_dirty = True - @deprecated("Deprecated. For internal use only. Use CAT.unlink_concept_name instead", - depr_version=(1, 12, 0), removal_version=(1, 13, 0)) - def remove_names(self, cui: str, names: Iterable[str]) -> None: - self._remove_names(cui, names) - def _remove_names(self, cui: str, names: Iterable[str]) -> None: """Remove names from an existing concept - effect is this name will never again be used to link to this concept. This will only remove the name from the linker (namely name2cuis and name2cuis2status), the name will still be present everywhere else.