Skip to content

Commit 3182f6b

Browse files
committed
use WeightFormatEnum
1 parent 57576c7 commit 3182f6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bioimageio/core/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def test_model(
5555
model_rdf: str = typer.Argument(
5656
..., help="Path or URL to the model resource description file (rdf.yaml) or zipped model."
5757
),
58-
weight_format: Optional[str] = typer.Argument(None, help="The weight format to use."),
58+
weight_format: Optional[WeightFormatEnum] = typer.Argument(None, help="The weight format to use."),
5959
devices: Optional[List[str]] = typer.Argument(None, help="Devices for running the model."),
6060
decimal: int = typer.Argument(4, help="The test precision."),
6161
) -> int:
@@ -80,7 +80,7 @@ def test_resource(
8080
rdf: str = typer.Argument(
8181
..., help="Path or URL to the resource description file (rdf.yaml) or zipped resource package."
8282
),
83-
weight_format: Optional[str] = typer.Argument(None, help="(for model only) The weight format to use."),
83+
weight_format: Optional[WeightFormatEnum] = typer.Argument(None, help="(for model only) The weight format to use."),
8484
devices: Optional[List[str]] = typer.Argument(None, help="(for model only) Devices for running the model."),
8585
decimal: int = typer.Argument(4, help="(for model only) The test precision."),
8686
) -> int:

0 commit comments

Comments
 (0)