Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use pandas.to_timedelta function instead of invoking deprecated ctor arg #918

Merged
merged 19 commits into from
Mar 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "minor change (asdf warning)"
This reverts commit 89a294d.
  • Loading branch information
marscher committed Mar 6, 2024
commit 33566c18f32f8d5213e2fba3b3fac9060df2535a
5 changes: 3 additions & 2 deletions weldx/asdf/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@

import asdf
import pint
from asdf.asdf import SerializationContext
from asdf.config import AsdfConfig, get_config
from asdf.extension import Extension, SerializationContext
from asdf.extension import Extension
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 @@ -493,7 +494,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.extension.SerializationContext):
if isinstance(ctx, asdf.asdf.SerializationContext):
extensions = ctx.extension_manager.extensions
elif isinstance(ctx, asdf.config.AsdfConfig):
extensions = ctx.extensions
Expand Down
Loading