#NEWLINE# def small_view( data , attribute ) : #NEWLINE# #INDENT# '\n    Extract a downsampled view from a dataset, for quick\n    statistical summaries\n    ' #NEWLINE# shp = data . shape #NEWLINE# view = tuple ( [ slice ( None , None , np . intp ( max ( ( s / 50 ) , 1 ) ) ) for s in shp ] ) #NEWLINE# return data [ ( attribute , view ) ]