|
4 | 4 | from typing import Iterable, Mapping, Tuple |
5 | 5 |
|
6 | 6 | import pytest |
7 | | -from pydantic import HttpUrl |
8 | | - |
9 | 7 | from bioimageio.spec import InvalidDescr, settings |
10 | 8 | from bioimageio.spec.common import Sha256 |
| 9 | +from pydantic import HttpUrl |
| 10 | + |
11 | 11 | from tests.utils import ParameterSet, expensive_test |
12 | 12 |
|
13 | 13 | TEST_RDF_SOURCES: Mapping[str, Tuple[HttpUrl, Sha256]] = { |
14 | | - "affable-shark": ( |
15 | | - HttpUrl( |
16 | | - "https://hypha.aicell.io/bioimage-io/artifacts/affable-shark/files/rdf.yaml?version=v0" |
17 | | - ), |
18 | | - Sha256("b74944b4949591d3eaf231cf9ab259f91dec679863020178e6c3ddadd52a019c"), |
19 | | - ), |
| 14 | + # "affable-shark": ( # TODO: enable when updated with fixed torchscript and onnx weights |
| 15 | + # HttpUrl( |
| 16 | + # "https://hypha.aicell.io/bioimage-io/artifacts/affable-shark/files/rdf.yaml?version=v0" |
| 17 | + # ), |
| 18 | + # Sha256("b74944b4949591d3eaf231cf9ab259f91dec679863020178e6c3ddadd52a019c"), |
| 19 | + # ), |
20 | 20 | "ambitious-sloth": ( |
21 | 21 | HttpUrl( |
22 | 22 | "https://hypha.aicell.io/bioimage-io/artifacts/ambitious-sloth/files/rdf.yaml?version=v0" |
@@ -72,10 +72,11 @@ def test_rdf( |
72 | 72 | sha: Sha256, |
73 | 73 | key: str, |
74 | 74 | ): |
75 | | - from bioimageio.core import load_description, load_description_and_test |
76 | 75 | from bioimageio.spec import get_conda_env |
77 | 76 | from bioimageio.spec.model import ModelDescr |
78 | 77 |
|
| 78 | + from bioimageio.core import load_description, load_description_and_test |
| 79 | + |
79 | 80 | descr = load_description( |
80 | 81 | descr_url, sha256=sha, format_version="latest", perform_io_checks=True |
81 | 82 | ) |
|
0 commit comments