#NEWLINE# def __init__( self , data_stream , minimum_shape , resample = 'nearest' , **kwargs ) : #NEWLINE# #INDENT# self . minimum_shape = minimum_shape #NEWLINE# try : #NEWLINE# #INDENT# self . resample = getattr ( Image , resample . upper ( ) ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# raise ValueError ( "unknown resampling filter '{}'" . format ( resample ) ) #NEWLINE# #UNINDENT# kwargs . setdefault ( 'produces_examples' , data_stream . produces_examples ) #NEWLINE# kwargs . setdefault ( 'axis_labels' , data_stream . axis_labels ) #NEWLINE# super ( MinimumImageDimensions , self ) . __init__ ( data_stream , ** minimum_shape )