Skip to content

Commit

Permalink
CU-8695j1be2: Remove deprecated method on CDB (#481)
Browse files Browse the repository at this point in the history
* CU-8695j1be2: Remove deprecated method on CDB

* CU-8695j1be2: Remove unused import due to removal of deprecated method
  • Loading branch information
mart-r authored Aug 28, 2024
1 parent 6d1247a commit 540224c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions medcat/cdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 540224c

Please sign in to comment.