File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 4646 MismatchedElementsPerMillion ,
4747 RelativeTolerance ,
4848)
49- from bioimageio .spec ._internal .validation_context import (
50- get_validation_context ,
51- validation_context_var ,
52- )
49+ from bioimageio .spec ._internal .validation_context import get_validation_context
5350from bioimageio .spec .common import BioimageioYamlContent , PermissiveFileSource , Sha256
5451from bioimageio .spec .model import v0_4 , v0_5
5552from bioimageio .spec .model .v0_5 import WeightsFormat
@@ -480,7 +477,7 @@ def load_description_and_test(
480477 rd = source
481478 elif isinstance (source , dict ):
482479 # check context for a given root; default to root of source
483- context = validation_context_var . get (
480+ context = get_validation_context (
484481 ValidationContext (root = root , file_name = file_name )
485482 ).replace (
486483 perform_io_checks = True # make sure we perform io checks though
You can’t perform that action at this time.
0 commit comments