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

deprecated imshow and imread #335

Merged
merged 1 commit into from
Mar 30, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions pyclesperanto_prototype/_tier9/_imread.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from .._tier0 import Image

def imread(filename : str) -> Image:
import warnings
warnings.warn("cle.imread is deprecated, use skimage.io.imread instead.")
from skimage.io import imread as skimread
image = skimread(filename)

Expand Down
2 changes: 2 additions & 0 deletions pyclesperanto_prototype/_tier9/_imshow.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def imshow(image : Image, title : str = None, labels : bool = False, min_display
continue_drawing: float
True: the next shown image can be visualized on top of the current one, e.g. with alpha = 0.5
"""
import warnings
warnings.warn("cle.imshow is deprecated, use stackview.imshow instead.")
import numpy as np
from .._tier0 import pull
from .._tier1 import maximum_z_projection
Expand Down
Loading