Skip to content

Commit bc29589

Browse files
committed
Fix bug in shortcut function
1 parent a217573 commit bc29589

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/semra/pipeline.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -519,18 +519,18 @@ def from_prefixes(
519519
*,
520520
key: str,
521521
name: str,
522-
prefixes: t.Iterable[str],
522+
prefixes: t.Sequence[str],
523523
include_biomappings: bool = True,
524524
include_gilda: bool = True,
525525
directory: Path,
526526
) -> Self:
527527
"""Get a configuration from ontology prefixes."""
528-
inputs = [Input(source="bioontologies", prefix=p) for p in prefixes]
528+
inputs = [Input(source="pyobo", prefix=p) for p in prefixes]
529529
if include_biomappings:
530530
inputs.append(Input(source="biomappings"))
531531
if include_gilda:
532532
inputs.append(Input(source="gilda"))
533-
return cls(key=key, name=name, inputs=inputs, directory=directory)
533+
return cls(key=key, name=name, inputs=inputs, directory=directory, priority=prefixes)
534534

535535
# docstr-coverage: inherited
536536
@overload

0 commit comments

Comments
 (0)