From 89a294d4a3fd5bd5dd69744224dfd67b1891a3c3 Mon Sep 17 00:00:00 2001 From: "Martin K. Scherer" Date: Wed, 6 Mar 2024 12:47:00 +0100 Subject: [PATCH] minor change (asdf warning) --- weldx/asdf/util.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/weldx/asdf/util.py b/weldx/asdf/util.py index c7de94c57..5dcf9ea1a 100644 --- a/weldx/asdf/util.py +++ b/weldx/asdf/util.py @@ -10,9 +10,8 @@ import asdf import pint -from asdf.asdf import SerializationContext from asdf.config import AsdfConfig, get_config -from asdf.extension import Extension +from asdf.extension import Extension, SerializationContext from asdf.tagged import TaggedDict, TaggedList, TaggedString from asdf.util import uri_match as asdf_uri_match from boltons.iterutils import get_path, remap @@ -494,7 +493,7 @@ def from_yaml_tree( def get_weldx_extension(ctx: SerializationContext | AsdfConfig) -> Extension: """Grab the weldx extension from list of current active extensions.""" - if isinstance(ctx, asdf.asdf.SerializationContext): + if isinstance(ctx, asdf.extension.SerializationContext): extensions = ctx.extension_manager.extensions elif isinstance(ctx, asdf.config.AsdfConfig): extensions = ctx.extensions