Warning
To correct this warning, we need to implement summarize. First, we import:
from orangewidget.utils.signals import summarize, PartialSummary
Then we implement:
@summarize.register
def summarize_ndarray(a: np.ndarray):
return PartialSummary(f"{a.shape[0]}x{a.shape[1]}", f"Image of size {a.shape[0]}x{a.shape[1]}")
When we run orange-canvas
we see the partial summary under the info box, and
if we click on it, we get whole summary: