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

Bugfix: Use importlib.metadata.version instead import from _version #190

Merged
merged 3 commits into from
Nov 30, 2023
Merged
Changes from all commits
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
14 changes: 13 additions & 1 deletion napari_animation/animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import imageio
import numpy as np
from napari._version import version as napari_version
from napari.utils.io import imsave
from tqdm import tqdm

Expand All @@ -14,6 +13,19 @@
from .frame_sequence import FrameSequence
from .key_frame import KeyFrame, KeyFrameList

try:
from importlib.metadata import version
except ImportError:
try:
from importlib_metadata import version
except ImportError:

def version(_=None):
return "<0.4.15"


napari_version = version("napari")


class Animation:
"""Make animations using the napari viewer.
Expand Down