Skip to content

Commit

Permalink
Fix Error with curie parsing in sssom parse #519 (#520)
Browse files Browse the repository at this point in the history
Fixes #519 

Seems that in the new sssom py versions, the type of the inputs is
"tuple", not list.
  • Loading branch information
matentzn committed Apr 12, 2024
1 parent 01965f4 commit f3d61d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sssom/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ def extract_iris(
return sorted(set(chain.from_iterable(extract_iris(p, converter) for p in pred_list)))
if isinstance(input, list):
return sorted(set(chain.from_iterable(extract_iris(p, converter) for p in input)))
if isinstance(input, tuple):
return sorted(set(chain.from_iterable(extract_iris(p, converter) for p in input)))
if converter.is_uri(input):
return [converter.standardize_uri(input, strict=True)]
if converter.is_curie(input):
Expand Down

0 comments on commit f3d61d0

Please sign in to comment.