Skip to content

Commit 9f0cf83

Browse files
committed
use common EXAMPLE_DESCRIPTIONS URL
1 parent 961503d commit 9f0cf83

File tree

1 file changed

+16
-24
lines changed

1 file changed

+16
-24
lines changed

tests/conftest.py

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -46,56 +46,48 @@
4646

4747
logger.warning("testing with bioimageio.spec {}", bioimageio_spec_version)
4848

49+
EXAMPLE_DESCRIPTIONS = "https://raw.githubusercontent.com/bioimage-io/spec-bioimage-io/main/example_descriptions/"
50+
4951
# TODO: use models from new collection on S3
5052
MODEL_SOURCES: Dict[str, str] = {
5153
"hpa_densenet": "polite-pig/1.1",
5254
"stardist": (
53-
"https://raw.githubusercontent.com/bioimage-io/spec-bioimage-io/main/example_descriptions/models"
54-
"/stardist_example_model/v0_4.bioimageio.yaml"
55+
EXAMPLE_DESCRIPTIONS + "models/stardist_example_model/v0_4.bioimageio.yaml"
5556
),
5657
"shape_change": (
57-
"https://raw.githubusercontent.com/bioimage-io/spec-bioimage-io/main/example_descriptions/models/"
58-
"upsample_test_model/v0_4.bioimageio.yaml"
58+
EXAMPLE_DESCRIPTIONS + "models/upsample_test_model/v0_4.bioimageio.yaml"
5959
),
6060
"stardist_wrong_shape": (
61-
"https://raw.githubusercontent.com/bioimage-io/spec-bioimage-io/main/example_descriptions/models/"
62-
"stardist_example_model/rdf_wrong_shape.yaml"
61+
EXAMPLE_DESCRIPTIONS + "models/stardist_example_model/rdf_wrong_shape.yaml"
6362
),
6463
"stardist_wrong_shape2": (
65-
"https://raw.githubusercontent.com/bioimage-io/spec-bioimage-io/main/example_descriptions/models/"
66-
"stardist_example_model/rdf_wrong_shape2_v0_4.yaml"
64+
EXAMPLE_DESCRIPTIONS
65+
+ "models/stardist_example_model/rdf_wrong_shape2_v0_4.yaml"
6766
),
6867
"unet2d_diff_output_shape": (
69-
"https://raw.githubusercontent.com/bioimage-io/spec-bioimage-io/main/example_descriptions/models/"
70-
"unet2d_diff_output_shape/v0_4.bioimageio.yaml"
68+
EXAMPLE_DESCRIPTIONS + "models/unet2d_diff_output_shape/v0_4.bioimageio.yaml"
7169
),
7270
"unet2d_expand_output_shape": (
73-
"https://raw.githubusercontent.com/bioimage-io/spec-bioimage-io/main/example_descriptions/models/"
74-
"unet2d_nuclei_broad/expand_output_shape.bioimageio.yaml"
71+
EXAMPLE_DESCRIPTIONS
72+
+ "models/unet2d_nuclei_broad/expand_output_shape.bioimageio.yaml"
7573
),
7674
"unet2d_fixed_shape": (
77-
"https://raw.githubusercontent.com/bioimage-io/spec-bioimage-io/main/example_descriptions/models/"
78-
"unet2d_fixed_shape/v0_4.bioimageio.yaml"
75+
EXAMPLE_DESCRIPTIONS + "models/unet2d_fixed_shape/v0_4.bioimageio.yaml"
7976
),
8077
"unet2d_keras_tf2": (
81-
"https://raw.githubusercontent.com/bioimage-io/spec-bioimage-io/main/example_descriptions/models/"
82-
"unet2d_keras_tf2/v0_4.bioimageio.yaml"
78+
EXAMPLE_DESCRIPTIONS + "models/unet2d_keras_tf2/v0_4.bioimageio.yaml"
8379
),
8480
"unet2d_keras": (
85-
"https://raw.githubusercontent.com/bioimage-io/spec-bioimage-io/main/example_descriptions/models/"
86-
"unet2d_keras_tf/v0_4.bioimageio.yaml"
81+
EXAMPLE_DESCRIPTIONS + "models/unet2d_keras_tf/v0_4.bioimageio.yaml"
8782
),
8883
"unet2d_multi_tensor": (
89-
"https://raw.githubusercontent.com/bioimage-io/spec-bioimage-io/main/example_descriptions/models/"
90-
"unet2d_multi_tensor/v0_4.bioimageio.yaml"
84+
EXAMPLE_DESCRIPTIONS + "models/unet2d_multi_tensor/v0_4.bioimageio.yaml"
9185
),
9286
"unet2d_nuclei_broad_model_old": (
93-
"https://raw.githubusercontent.com/bioimage-io/spec-bioimage-io/main/example_descriptions/models/"
94-
"unet2d_nuclei_broad/v0_4_9.bioimageio.yaml"
87+
EXAMPLE_DESCRIPTIONS + "models/unet2d_nuclei_broad/v0_4_9.bioimageio.yaml"
9588
),
9689
"unet2d_nuclei_broad_model": (
97-
"https://raw.githubusercontent.com/bioimage-io/spec-bioimage-io/main/example_descriptions/models/"
98-
"unet2d_nuclei_broad/bioimageio.yaml"
90+
EXAMPLE_DESCRIPTIONS + "models/unet2d_nuclei_broad/bioimageio.yaml"
9991
),
10092
}
10193

0 commit comments

Comments
 (0)