Skip to content

Commit

Permalink
Update util.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Nov 5, 2023
1 parent fe48586 commit d4395c0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/sssom/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit d4395c0

Please sign in to comment.