Skip to content

Commit 902262b

Browse files
Merge pull request #206 from bioimage-io/fix_test_resource
Fix test-resource
2 parents 7f9cab7 + 6cd49b3 commit 902262b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

bioimageio/core/__main__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from glob import glob
66

77
from pathlib import Path
8+
from pprint import pprint
89
from typing import List, Optional
910

1011
import typer
@@ -110,7 +111,7 @@ def test_model(
110111
ret_code = 0
111112
else:
112113
print(f"Model test for {model_rdf} using {weight_format} weight format has FAILED!")
113-
print(summary)
114+
pprint(summary)
114115
ret_code = 1
115116
sys.exit(ret_code)
116117

@@ -138,7 +139,7 @@ def test_resource(
138139
ret_code = 0
139140
else:
140141
print(f"Resource test for {rdf} has FAILED!")
141-
print(summary)
142+
pprint(summary)
142143
ret_code = 1
143144
sys.exit(ret_code)
144145

bioimageio/core/resource_io/nodes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class Badge(Node, rdf_raw_nodes.Badge):
6363

6464

6565
@dataclass
66-
class RDF(rdf_raw_nodes.RDF, Node):
66+
class RDF(rdf_raw_nodes.RDF, ResourceDescription):
6767
badges: Union[_Missing, List[Badge]] = missing
6868
covers: Union[_Missing, List[Path]] = missing
6969

@@ -79,7 +79,7 @@ class ModelParent(Node, model_raw_nodes.ModelParent):
7979

8080

8181
@dataclass
82-
class Collection(RDF, collection_raw_nodes.Collection):
82+
class Collection(collection_raw_nodes.Collection, RDF):
8383
pass
8484

8585

@@ -174,7 +174,7 @@ class Attachments(Node, rdf_raw_nodes.Attachments):
174174

175175

176176
@dataclass
177-
class Model(model_raw_nodes.Model, RDF, Node):
177+
class Model(model_raw_nodes.Model, RDF):
178178
authors: List[Author] = missing
179179
maintainers: Union[_Missing, List[Maintainer]] = missing
180180
test_inputs: List[Path] = missing

0 commit comments

Comments
 (0)