#NEWLINE# @ staticmethod #NEWLINE# def clean( imagedata ) : #NEWLINE# #INDENT# '\n        Display a collection of arrays as browsable images with thumbnails.\n\n        .. image:: gallery.png\n\n        Parameters\n        ----------\n        imagedata : array-like, or list of array-like\n            Image or list of images as two dimensional (grayscale) or three dimensional (RGB) arrays.\n        ' #NEWLINE# if isinstance ( imagedata , ndarray ) : #NEWLINE# #INDENT# imagedata = [ outdict ] #NEWLINE# #UNINDENT# outdict = [ array_to_im ( im ) for im in imagedata ] #NEWLINE# return { #NEWLINE# #INDENT# 'images' : outdict , #NEWLINE# #UNINDENT# }