Skip to content

Commit

Permalink
minor change (asdf warning)
Browse files Browse the repository at this point in the history
  • Loading branch information
marscher committed Mar 6, 2024
1 parent e758b18 commit 89a294d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions weldx/asdf/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 89a294d

Please sign in to comment.