Skip to content

Commit

Permalink
deprecated imshow and imread
Browse files Browse the repository at this point in the history
  • Loading branch information
haesleinhuepf committed Mar 30, 2024
1 parent 2f99473 commit f2ccf78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
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

0 comments on commit f2ccf78

Please sign in to comment.