Skip to content

Commit 4a80764

Browse files
committed
accept URLs in test-model command
1 parent 216d65b commit 4a80764

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

bioimageio/core/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ def package(
4646
# https://github.com/tiangolo/typer/issues/182
4747
@app.command()
4848
def test_model(
49-
model_rdf: Path = typer.Argument(
50-
..., help="Path to the model resource description file (rdf.yaml) or zipped model."
49+
model_rdf: str = typer.Argument(
50+
..., help="Path or URL to the model resource description file (rdf.yaml) or zipped model."
5151
),
5252
weight_format: Optional[str] = typer.Argument(None, help="The weight format to use."),
5353
devices: Optional[List[str]] = typer.Argument(None, help="Devices for running the model."),

bioimageio/core/prediction.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,6 @@ def test_model(model_rdf: Union[URI, Path, str], weight_format=None, devices=Non
481481
482482
Returns True if the test passes, otherwise returns False and issues a warning.
483483
"""
484-
print(model_rdf, Path(model_rdf).exists())
485484
model = load_resource_description(model_rdf)
486485
assert isinstance(model, Model)
487486
prediction_pipeline = create_prediction_pipeline(

0 commit comments

Comments
 (0)