From d4395c0d1c408836016fbc0d02fca19572491407 Mon Sep 17 00:00:00 2001 From: Charles Tapley Hoyt Date: Sun, 5 Nov 2023 01:00:57 +0100 Subject: [PATCH] Update util.py --- src/sssom/util.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/sssom/util.py b/src/sssom/util.py index 4c85a031..889682d2 100644 --- a/src/sssom/util.py +++ b/src/sssom/util.py @@ -1130,7 +1130,7 @@ def get_prefixes_used_in_table(df: pd.DataFrame, converter: Converter) -> Set[st prefixes.update( converter.parse_curie(row).prefix for row in df[col] - if not converter.is_uri(row) and converter.is_curie(row) + if converter.is_curie(row) ) return set(prefixes) @@ -1154,8 +1154,6 @@ def filter_out_prefixes( filter_prefixes: List[str], features: Optional[list] = None, require_all_prefixes: bool = False, - *, - converter: Converter, ) -> pd.DataFrame: """Filter out rows which contains a CURIE with a prefix in the filter_prefixes list. @@ -1184,8 +1182,6 @@ def filter_prefixes( filter_prefixes: List[str], features: Optional[list] = None, require_all_prefixes: bool = True, - *, - converter: Converter, ) -> pd.DataFrame: """Filter out rows which do NOT contain a CURIE with a prefix in the filter_prefixes list.